NSOA.context.remainingUnits()
Use this function to determine how many units your script has left before it will be halted by OpenAir. Each script is allowed to consume a maximum of 1000 units.
For more information see Scripting Governance.
Parameters
-
(none)
Returns
-
The number of units remaining.
Tip:Always try to reduce the number of units your scripts consume. Notice that NSOA.record functions consume zero units, but NSOA.wsapi functions consume 10 units for each call.
Units Limit
-
0 units
For more information, see Scripting Governance.
Since
-
August 17, 2013
Example
-
This example displays the number of units consumed at the top of the form as an error message.
NSOA.form.error('','Units consumed: ' + NSOA.context.remainingUnits());
See also NSOA.form.error(field, message).
For more information see Scripting Governance.