Used to access the results of a StatLib execution.
Constructors
StatResult()
Initializes a new instance of the StatResult class.
Methods
atGroupBegin(Integer)
Checks if the current row is the first row for a given group.
Returns: CRMScript.Global.Bool - True if we’re at the first row for this group; otherwise, false.
atGroupEnd(Integer)
Checks if the current row is the last row for a given group.
Returns: CRMScript.Global.Bool - True if we’re at the last row for this group; otherwise, false.
dumpParser()
Returns a string with everything in the StatResult parser listed.
Returns: CRMScript.Global.String - A string with everything in the StatResult parser listed.
Mainly used for debugging and development. It will show you every variable in the StatResult parser.
eof()
Checks if the internal iterator is past the last element.
Returns: CRMScript.Global.Bool - True if the internal iterator is past the last element; otherwise, false.
getField(Integer)
Returns the value for the given field at the current row.
Returns: CRMScript.Global.String - The value for the given column at the current row.
You can specify the field either by its name or its column. Normally used to retrieve values from aggregate functions.
getField(String)
Returns the value for the given field at the current row.
Returns: CRMScript.Global.String - The value for the given field at the current row.
You can specify the field either by its name or its column. Normally used to retrieve values from aggregate functions.
next()
Moves the internal iterator to next element.
Returns: CRMScript.Global.Bool - Eof() after move.
rewind()
Rewinds the internal iterator.
Returns: CRMScript.Global.Void
saveAsResult(Integer,Integer,Integer)
Returns a reference to a result set.
Returns: CRMScript.Global.Integer - A reference to the result set.
Example: