Previous Topic: Access Methods on an Indexed FieldNext Topic: Specify Process Dataset Variables


Specify Named Dataset Variables

Fields in dataset objects (named datasets) are identified in expressions using either dot (.string) or bracket ([expression]) notation:

Datasets[path_expression][variable_name_expression]
Datasets[path_expression].variable_name
path_expression

Represents any JavaScript expression that evaluates to a path descriptor for a dataset object in the current CA Process Automation Library. A path to any object in the Library starts with a forward slash (/) for the root element, followed by the slash-delimited folder hierarchy, and ends with the object name.

variable_name_expression

Represents an expression that returns the name of a field in the dataset object.

variable_name

Represents the actual name of a field in the dataset object.

Either of the following syntaxes is valid for referencing field Y in the named dataset Coordinates located in the /MathValues folder:

Datasets["/MathValues/Coordinates"].Y
Datasets["/MathValues/Coordinates"]["Y"]

More information:

Relative Paths for Datasets