DIAdem Help

Property: Conditions for QueryForm <DataFinder>

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

Property: Conditions for QueryForm <DataFinder>

Specifies the Search parameters for an advanced search in the interface of a DataFinder.

Set oConditions = Object.Conditions
ObjectQueryForm <DataFinder>
Object with this property
oConditionsConditions <DataFinder>
Returned object

Note  If you change the value of the Conditions property, these changes influence the interface of the DataFinder directly.

The following example determines whether the current query is an advanced search. The example then enters the name of each search condition in the logical operations line and uses an OR operation on each search condition:

VBScriptPython

 

Dim oMyQueryForm, Conditions, Condition, sLogic
Set oMyQueryForm = Navigator.Display.CurrDataFinder.QueryForm
If oMyQueryForm.Mode = eAdvancedQueryForm Then
  Set Conditions = oMyQueryForm.Conditions
    For Each Condition in Conditions
      If sLogic = "" Then
        sLogic = Condition.Name
      Else
        sLogic = sLogic & " OR " & Condition.Name
      End If
    Next
  Conditions.Logic = sLogic
End If

Log in to get a better experience