Method: LoadProperty for Navigator
- Updated2024-09-12
- 4 minute(s) read
DIAdem NAVIGATOR > Methods > Method: LoadProperty for Navigator
Method: LoadProperty for Navigator
Loads the property values from the results of a search in a DataFinder or a data store as channels into the Data Portal.
Set oElementList = Object.LoadProperty(PathOrIndex, Elements, [ImportAction])
| Object | Navigator Object with this method | ||||||
| PathOrIndex | Variant Specifies which property to load. If you do not specify this value or if you use the Elements parameter, DIAdem loads all properties as channels into the Data Portal. | ||||||
| Elements | Variant Specifies the elements from which DIAdem loads the property specified in the PathOrIndex parameter. The elements to load are a type Elements. | ||||||
| [ImportAction] | Variant Specifies how the LoadProperty method transfers the property values into the channels. You can use either the ImportParameter object or one of the following script terms.
| ||||||
| oElementList | ElementList <Data> Returned object |
![]() | Note If you use the ImportParameter object for the ImportAction parameter, the LoadProperty command supports the properties ImportMode, LoadReturnMode, and AppendCheckGroupName. The method ignores all other properties of the object. |
![]() | Note When DIAdem generates a channel in the Data Portal, the program assigns values to the following channel properties:
|
The following example searches for channels that contain a maximum value greater than 5. Then the example loads all the values of the Maximum property from the search results into a channel in the Data Portal:
| VBScript | Python |
Dim oMyAdvancedQuery Set oMyAdvancedQuery = Navigator.ConnectDataFinder("My DataFinder").CreateQuery(eAdvancedQuery) Call oMyAdvancedQuery.Conditions.Add(eSearchChannel,"maximum",">",5) oMyAdvancedQuery.ReturnType = eSearchChannel Call Navigator.Display.CurrDataFinder.QueryForm.SetCurrQuery(oMyAdvancedQuery) Call Navigator.Display.CurrDataFinder.QueryForm.Search() Call Navigator.LoadProperty ("maximum",Navigator.Display.CurrDataFinder.ResultsList.ResultsElements)
The following example loads the columns you selected in the search results of a data store as channels into the Data Portal:
| VBScript | Python |
Dim oMyResultsList, oReturnType, oMySelection Set oMyResultsList = Navigator.Display.CurrDataStore.ResultsList oReturnType = Navigator.Display.CurrDataStore.QueryForm.GetCurrQuery().ReturnType For Each oMySelection in oMyResultsList.Selection Call Navigator.LoadProperty(oMySelection.GetPath(oReturnType),oMyResultsList.ResultsElements) Next
The following example executes a column-oriented search, displays the return type of the found property, and loads the properties as channels into the Data Portal. The example does not use the PathOrIndex parameter:
| VBScript | Python |
Dim oMyDataFinder, oMyQuery, oMyConditions, oMyResultsColumns, oMyResultsProps Call Data.Root.Clear() Set oMyDataFinder = Navigator.ConnectDataFinder("My DataFinder") Set oMyQuery = oMyDataFinder.CreateQuery(eAdvancedQuery) oMyQuery.ReturnType = eSearchChannel Set oMyConditions = oMyQuery.Conditions Call oMyConditions.RemoveAll() Call oMyConditions.Add(eSearchChannel,"maximum",">=","10") oMyConditions.Logic = "C1" Set oMyResultsColumns = oMyDataFinder.CreateResultsColumns() Call oMyResultsColumns.RemoveAll Call oMyResultsColumns.Add(eSearchChannelGroup, "name") Call oMyResultsColumns.Add(eSearchFile, "fileName") Call oMyResultsColumns.Add(eSearchFile, "folder") Call oMyResultsColumns.Add(eSearchChannel, "maximum") Call oMyDataFinder.SearchProperties(oMyQuery, oMyResultsColumns) Set oMyResultsProps = oMyDataFinder.ResultsProperties Call MsgBoxDisp("Result properties return type: " & oMyResultsProps.ReturnType) Call Navigator.LoadProperty(oMyResultsProps)
The following example searches for channels that contain a maximum value greater than 5. Then the example loads all the values of the Maximum property from the search results list with the loading configuration defined in the oMyImportParameter object into a channel in the Data Portal:
| VBScript | Python |
Dim oMyAdvancedQuery, oMyImportParameter Set oMyAdvancedQuery = Navigator.ConnectDataFinder("My DataFinder").CreateQuery(eAdvancedQuery) Call oMyAdvancedQuery.Conditions.Add(eSearchChannel,"maximum",">",5) oMyAdvancedQuery.ReturnType = eSearchChannel Call Navigator.Display.CurrDataFinder.QueryForm.SetCurrQuery(oMyAdvancedQuery) Call Navigator.Display.CurrDataFinder.QueryForm.Search() Set oMyImportParameter = Navigator.Settings.CreateImportParameter("Load") oMyImportParameter.AppendCheckGroupName = eAppendCheckGroupNameAutomatic oMyImportParameter.ImportMode = eAppend Call Navigator.LoadProperty ("maximum",Navigator.Display.CurrDataFinder.ResultsList.ResultsElements, oMyImportParameter)
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
