Skip to main content
Cache to often used db tables and structures and retrieve them in a useful and structured fashion

Constructors

Cache()

Initializes a new instance of the Cache class.

Methods

eof()

Checks if there are no more fields in the result.
Returns: CRMScript.Global.Bool - True if it is at end of file or there are no more fields to iterate through; otherwise, false.
A common usage is in the condition section in a for loop.

first()

Sets the iterator variable to the first field in the field set.
Returns: CRMScript.Global.Bool - False if the field set is empty; otherwise, true.

getData(String)

This function will return data from a cached table.
Returns: CRMScript.Global.String - Data from the cached table specified in tableId.

getDataSubset(String,String,String)

Returns a subset of the data for a cached table based on a filter, where a field must have a given value.
Returns: CRMScript.Global.String - The rows from the table where filterField = filterValue.

getRow()

Returns a row of fields.
Returns: CRMScript.Native.Map - A row of fields.

next()

Sets the iterator to the next field.
Returns: CRMScript.Global.Bool - False if at end of file or the field set is empty; otherwise, true.

sort(String,Bool)

Sorts the cached data by given field in given order.
Returns: CRMScript.Global.Void