DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Search for files which contain channel X and Y and Z in search area navigator

 

Hi,

For a specific analysis I need certain channels to be present in a file(fielddata).

I want to search for files in datafinder that all have the channels available needed for this calculation.

 

How do I search?. Diadem Help says:

In the following example the DataFinder searches for files, groups, or channels with the channel name MyChannel1 and MyChannel2:

  Search in Property Operator Value
C1 Channel Name

=

MyChannel1
C2 Channel Name

=

MyChannel2
Logic line: C1 AND C2

Because the DataFinder connects the search conditions with AND and because no channel can be MyChannel1 and MyChannel2 simultaneously, the DataFinder does not display any results.

 

I have about 8 search lines for channels I need for calc. How can I perform this search.

Thanks

 

0 Kudos
Message 1 of 2
(3,746 Views)

Hi,

 

one possible option to do this is to search for groups containing all these channels, but combine the names by OR (MyChannel1 OR MyChannel2)

This will return all groups which contains at least one of the requested channels (maybe there is an additional property at the root level which can be used to narrow down the results).

Afterwards loop over the channel collection of the returned groups and figure out if all needed channels are in this collection.

ResultsList.Elements(i).Channels.Exists("MyChannel1")....

0 Kudos
Message 2 of 2
(3,742 Views)