Capture HxGN EAM main toolbar button clicks example message (to be handled by the custom application).
{
messageName: 'toolbarButtonClick',
action: 'newRec'
}
-
In the usage of above scenario, when we click on new 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 a new record it will call doRest function and insert action will be done