Method: Commit for DataFinderSettings
- Updated2024-09-12
- 3 minute(s) read
DIAdem NAVIGATOR > Methods > Method: Commit for DataFinderSettings
Method: Commit for DataFinderSettings
Saves the modified DataFinder configuration settings in the active configuration file. This is only possible if you assign the value FALSE to the AutoCommit property. You can use this method only on the computer on which the DataFinder is active.
![]() | Note Use the Commit method only for the configuration of the My DataFinder DataFinder. To configure a data indexing instance in SystemLink TDM, use the SystemLink TDM HTTP API. For a description of the SystemLink TDM HTTP API, see the SystemLink Help. |
Object.Commit(WaitForDataFinder)
| Object | DataFinderSettings Object with this method |
| WaitForDataFinder | Boolean Specifies whether a script waits until the DataFinder configuration and the index are updated (TRUE), for example, after a large search area is deleted, or whether the script continues to execute (FALSE). If you assign the value FALSE to the WaitForDataFinder parameter, the DataFinder might not be able to respond to other queries or changes immediately. |
![]() | Note If you assign the value FALSE to the WaitForDataFinder parameter, the DataFinder symbol on the task bar displays an hourglass until all the changes are saved and the DataFinder is available. |
The following example generates two new search areas. The DataFinder first writes all the modified settings to the memory. Then the DataFinder uses the Commit method to save the modified settings:
| VBScript | Python |
Dim oMyDataFinder, oMyDataFinderSettings, oMySearchAreas Set oMyDataFinder = Navigator.ConnectDataFinder("My DataFinder") Set oMyDataFinderSettings = oMyDataFinder.GetSettings() oMyDataFinderSettings.AutoCommit = FALSE Set oMySearchAreas = oMyDataFinderSettings.SearchAreas Call oMySearchAreas.Add("MyNewSearchArea1", "C:\MyNewSearchArea1") Call oMySearchAreas.Add("MyNewSearchArea2", "D:\MyNewSearchArea2") oMyDataFinderSettings.Commit(TRUE)
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
