Object
Actions are written in standard JavaScript, but development requires the use of an action-specific object. An object is structural data that holds data. Objects include $ui and $const, which have preregistered properties, and $param and $session, to which properties can be added arbitrarily. There is also $req and $res which can only be used in REST API actions.
Object | Purpose | Description |
---|---|---|
$ui | Access to UI components | Can set/get values for registered properties |
$param | Data transfer to the next ui | Can set/get any property |
$session | Data transfer during a session | Can set/get any property |
$const | Constant Reference | Possible to retrieve registered constant values |
$req | Request data | Obtain HTTP request object in REST API action |
$res | Response data | Set HTTP response object in REST API action |