Sample code
{
messageName: 'toolbarButtonState',
buttons: ['saveRec', 'deleteRec'], // must be an array.
state: 'enable' // valid values are 'enable' or 'disable.'
}
The usage of above enable/disable HxGN EAM main toolbar buttons.
Above scenario implemented in user_accounts.js file. It’s existed in sampleApp\static\javascript folder.