Capture HxGN EAM main toolbar button clicks example message (to be handled by the custom application).
{
messageName: 'toolbarButtonClick',
action: 'resetRec'
}
-
In the usage of above scenario, When we click on reset button on toolbar, first it will call postMessageListener function in customframework_common.js and then call toolbarButtonClick event.
-
postMessageListener function in 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
-
Window.onunload function in the accounts.js
-
For a reset record it will call doReset function and Update action will be done