Searching for Data with a Script without Using the Navigator Interface

DIAdem 2018 Help

Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)

DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help
DIAdem 2020 SP1 Help

Use the script interface in DIAdem NAVIGATOR to search for data with a script. For example, to create a script that starts the DataFinder My DataFinder without using the DIAdem NAVIGATOR interface, complete the following steps. The example loads the search parameters from the file MyQuery.tdq and starts the search. If the search was successful, the example loads the first element of the search results into the Data Portal.

  1. Select the DIAdem SCRIPT panel.

  2. Select File»New»VBS Script to create a new script.

  3. Enter or copy the following text into the script editor:

    Dim oMyQuery, oMyDataFinder, oMyResults
    Set oMyDataFinder = Navigator.ConnectDataFinder("My DataFinder")
    If Not oMyDataFinder Is Nothing Then
      Set oMyQuery = oMyDataFinder.LoadQuery(ConfReadPath & "Query_Example.tdq")
      Set oMyResults = oMyDataFinder.Results
        If(oMyResults.Count > 0) Then
          'Loading only the first result
      End If
    End If
  4.  Select Run Script to start the script.
Note  Refer to Searching for Data with a Script for further information on the script interface in DIAdem NAVIGATOR.


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 | 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


Not Helpful