Capture HxGN EAM main toolbar button clicks example message (to be handled by the custom application).
{
messageName: 'toolbarButtonClick',
action: 'saveRec'
}
-
In the usage of above scenario, When we click on Save button on toolbar, first it will call postMessageListener function in customframework_common.js and then call toolbarButtonClick event.
-
postMessageListener function in the customframework_common.js
-
Then it redirects to toolbarbuttonclick event in the accounts.js
-
This toolbarButtonClick event written in the accounts.js file in window. onload & window.onunload functions.
-
While opening the screen Window.onload function in the accounts.js will be called.
-
While leaving the screen window.onunload function in the accounts.js will be called
-
For saving a record it’ll call dosave function