DIAdem Help

Method: Add for Columns

  • Updated2024-09-12
  • 3 minute(s) read

Method: Add for Columns

Adds a column with properties to the search results list of a DataFinder or a data store.

Set oColumn = Object.Add(Type, Property, [DataType])
ObjectColumns
Object with this method
TypeString
Specifies the property type you add.
  • In DataFinders you can add properties of files (eSearchFile), groups (eSearchChannelGroup), or channels (eSearchChannel).
  • In data stores, for example, you can add properties of tests (Test) or measurements (Measurement). Here you must use the application names of the elements.

Refer to Configure Search Results List (Data Stores) and Configure Search Results List (DataFinder) for further information on the properties which you can display in the search results list.
PropertyString
Specifies the properties to be displayed.
[DataType]Specifies the data type of the column. Enumeration with the following selection terms:
0 DataTypeUnknown Not defined
3 DataTypeInt32 32-bit integer values
10 DataTypeFloat64 64-bit real values
23 DataTypeString Text
30 DataTypeDate Time values
oColumnColumn
Returned object
Note  If you change the Browse Settings of a data store, the valid values change for Type andProperty.

The following example adds a new column that contains the channel group property Description to the right of the search results of a DataFinder:

VBScriptPython

 

Dim oMyResultsList
Set oMyResultsList = Navigator.Display.CurrDataFinder.ResultsList
Call oMyResultsList.Columns.Add(eSearchChannelGroup,"Description")

The following example adds a new column with the measurement property ID to the right of the search results of a data store:

VBScriptPython

 

Dim oMyResultsList
Set oMyResultsList = Navigator.Display.CurrDataStore.ResultsList
Call oMyResultsList.Columns.Add("Measurement","ID")