DIAdem Help

Method: Add for Conditions <DataFinder>

  • Updated2024-09-12
  • 3 minute(s) read

Method: Add for Conditions <DataFinder>

Adds a new search condition to a DataFinder in an advanced search.

Set oCondition = Object.Add(Type, Property, Operator, Value)
ObjectConditions <DataFinder>
Object with this method
TypeString
Specifies whether DIAdem searches files, groups, or channels. Enumeration with the following selection terms:
eSearchChannel Search in channels
eSearchChannelGroup Search in groups
eSearchFile Search in files
PropertyString
Specifies which property to search.
OperatorString
Specifies the operator.
ValueVariant
Variant (Double, string, date, or UsiTimeDisp).
Specifies the value to search for.
You also can assign a Double or a String type field to the Value parameter. DIAdem then automatically executes an OR operation on the elements in the field.
oConditionCondition <DataFinder>
Returned object

Note  Refer to Searching for Data with the DataFinder for further information about using the DataFinder to mine for data.

Note  DIAdem always adds new search conditions to the in the end of the logical operations line. Refer to Notes on Searching with OR (DataFinder) for further information on the behavior of the logical operations line.

Note  Refer to Properties - Overview for a list of the interface terms, script names, and meanings of the properties of files, groups, and channels. You need the neutral script name of a property when you use a script to search for the value of a property. You also can enter a query in the search input area in DIAdem NAVIGATOR and press <Ctrl-Shift-C> to find the script name of a property. Then DIAdem saves a script to the clipboard that also contains the script name of the property.

The following example generates an extended search with two search conditions and executes the search:

VBScriptPython

 

Dim oMyQueryForm
Set oMyQueryForm = Navigator.Display.CurrDataFinder.QueryForm
Call oMyQueryForm.Clear
Call oMyQueryForm.Conditions.Add(eSearchChannel,"name","=","Speed")
Call oMyQueryForm.Conditions.Add(eSearchChannel,"description","=","My data")
Call oMyQueryForm.Search