|#h.1zpvhna
Table 6. The Table below describes the JSON actions that you can use in JavaScript code. h.1zpvhna Anchor
Table 6.JSON Actions
Action | Type | Description |
Select | Primary Action | Defines which modules and fields to use to determine when an action is performed. You also use the Select function to filter which records are read. For more information, see "JSON Select Action". |
Update | Primary or Secondary Action | Updates an existing record with new values. You use Update almost exclusively as a secondary action, after using Select and Invoke to read data and perform data validation. |
Insert | Primary or Secondary Action | Creates a new record, and inserts values into any of the fields within that record. You use Insert almost exclusively as a secondary action. |
Validate | Secondary Action | The validate action is usually performed from within an invoked function, which determines a set of conditions. If the conditions are met, then a variable is set to True. If the conditions are not met, then a variable is set to False. |
goToURL | Alternate Action | Sends data to an external application using the device URL code for the external application. For more information, see "JSON goToURL Action". |
getCondition | Alternate Action | Selects which records to display to the user. For more information, see "JSON getCondition Action". |
Showprompt | Alternate Action | Presents a dialog box with a message to the user, and waits for a response from the user. For more information, see "JSON Showprompt Action". |
Exitpage | Alternate Action | Exits page which is open. If you have opened a sub-page using window.open or location href, you will not close the page using this action. It will close the page when you have opened a sub page using targetframe. Syntax is: {\"action\":\"exitpage\",\"refresh\":\"yes\"} |