Method: Add for Conditions <DataFinder>
- Updated2024-09-12
- 3 minute(s) read
DIAdem NAVIGATOR > Methods > Method: Add for Conditions <DataFinder>
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)
| Object | Conditions <DataFinder> Object with this method | ||||||
| Type | String Specifies whether DIAdem searches files, groups, or channels. Enumeration with the following selection terms:
| ||||||
| Property | String Specifies which property to search. | ||||||
| Operator | String Specifies the operator. | ||||||
| Value | Variant 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. | ||||||
| oCondition | Condition <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:
| VBScript | Python |
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
See Also
Procedures
Configuring the Search Results | Defining Search Areas | Executing a Search with OR Operations | Executing a Text Search | Indexing Search Areas | Optimizing Custom Properties | Saving and Loading a Search Query | Searching for Data on a Different Computer in the Network | Searching for Multiple Properties | Sorting Search Results before Executing a Search
Examples
Brake Tests for Trucks | Checking DataPlugins for Timeout | Combining DataFinder Search Results | Context Menu for the Search Results of the DataFinder | Creating ATFX Files from the Context Menu of an ASAM Data Store | Customized User Interface | Evaluation Wizard for the Search Results of the DataFinder | Filtering Data with a Dialog Box | Filtering Data without a Dialog Box | Search and Evaluation Functions in User Dialog Boxes | Searching for and Evaluating Channels | Searching for Channels in the NAVIGATOR | Searching for Data Sets Marked "Failed" in Data Stores | Searching for Data Sets Marked "Failed" | Searching for Properties and Evaluating the Associated Channels | Varying Browse Settings of a Data Store
