Method: ConnectDataStoreByParameter for Navigator
- Updated2024-09-12
- 2 minute(s) read
DIAdem NAVIGATOR > Methods > Method: ConnectDataStoreByParameter for Navigator
Method: ConnectDataStoreByParameter for Navigator
Opens a connection to an ASAM data store without using the user interface. Use the corresponding parameters to determine the ASAM data store.
Set oDataStore = Object.ConnectDataStoreByParameter(PluginName, Params, [Reserved])
| Object | Navigator Object with this method |
| PluginName | String Specifies the name of the DataPlugin that DIAdem uses to open the ASAM data store. |
| Params | String Specifies an XML string with parameters. To generate the XML string for an ASAM data store, press the shortcut <Ctrl-Shift-C> in one of the dialog boxes where you configure data stores. Then open DIAdem SCRIPT and insert the clipboard contents with <Ctrl-V> into a script in order to get the string. You generate the XML string in the Data Stores - Settings or Create Data Store dialog boxes. |
| [Reserved] | Variant Is for later extensions. |
| oDataStore | DataStore Returned object |
The following example opens the file DataBase.atf with the Atf-DataPlugin:
| VBScript | Python |
Function FileOpenXmlParameter(filePath, readonly) FileOpenXmlParameter = "<filename" If(readonly) Then FileOpenXmlParameter = FileOpenXmlParameter & " readonly=""yes""" End If FileOpenXmlParameter = FileOpenXmlParameter & ">" & Replace(Replace(filePath, "&", "&"), "<", "<") & "</filename>" End Function Dim oMyStore Set oMyStore = Navigator.ConnectDataStoreByParameter("ATF",FileOpenXmlParameter(ProgramDrv & "Examples\Data\ASAMMultipleChildren.atfx"), false)
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