Anvaigo Page Triggers
For the following Anvaigo Page Triggers Anvaigo Scripts can be used to implement business logic. The scripts are specified when setting up the Anvaigo Page.
OnClosePage and OnOpenPage
These actions are defined in the Mobile App tab of the Anvaigo Page Card:
- OnClosePage – Anvaigo Script is run once after the Anvaigo Page is opened.
- OnOpenPage – Anvaigo Script is run after pressing back to close page. If no Anvaigo Script is defined, the Anvaigo Page closes automatically. If an OnClosePageTrigger is defined, the Anvaigo Script must run PAGE(‘CLOSE’,false) to close the Anvaigo Page.
OnAfterGetRecord
The setup for the OnAfterGetRecord script can be found under the extended setup actions from the Anvaigo Page Elements. The Anvaigo Script defined here is run for every record on lists. On Card Pages this script is run once for every record after loading it, e.g. after opening the Anvaigo Page, close the sync view or after returing back from another Anvaigo Page.
It is not allowed to create, modify or delete any data in the OnAfterGetRecord trigger.