system.db.runNamedQuery(path, parameters, [tx], [getKey])
The following feature is new in Ignition version 8.0.3
to check out the other new features
The following parameters were introduced in 8.0.3
Boolean getKey - Optional. Only used for Update Query types. A flag indicating whether or not the result should be the number of rows affected (getKey=0) or the newly generated key value that was created as a result of the update (getKey=1). Not all databases support automatic retrieval of generated keys.
Object - The results of the query. The exact object returned depends on the Query Type property of the Named Query: typically either a dataset when set to Query, an integer representing the number of rows affected when set to Update Query, or an object matching the datatype of the value returned by a Scalar Query.
Vision Client, Perspective Session