Functions Reference

Table Of Contents
Chapter 7
|
Get functions 101
Get(ScriptResult)
Format
Get(ScriptResult)
Parameter
None
Data type returned
text, number, date, time, timestamp, container
Description
When this function is part of a calculation evaluated within a script, returns the script result
from a performed subscript. If a subscript doesn’t return a result, then the content of the
script result will be empty.
Example
In the following example, script Find Customers returns the results of a find request when
it is called from script Do Reports. Script Find Customers uses the optional script result of
the Exit Script script step. Script Do Reports then uses Get(ScriptResult) to determine
what other script steps should be performed based on the returned result stored in
Get(ScriptResult).
Find Customers
Set Error Capture [On]
Perform Find [Restore]
New Record/Request
Exit Script [Result: Get(FoundCount) < 10]
Do Reports
Perform Script [Find Customers]
If [Get(ScriptResult) = 0]
Show Custom Dialog [“You have created 10 records already.”]
End If