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
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.
Represents an expression that returns the name of a field in the dataset object.
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"]
|
Copyright © 2014 CA.
All rights reserved.
|
|