Working With Panel-Level Actions

Any panel can have panel-level actions. These actions are defined in AXVW as <action> elements, and may invoke either View Commands or Java Script functions. Panel-level actions are displayed either as action buttons on the panel toolbar, or as dialog window buttons.

If the action has an id in AXVW, you can get a reference to that action by id:

var nextAction = this.requestForm.actions.get('next');


Once you get an action reference, you can enable, disable, hide, show, or change the title of the action. These operations will immediately affect the appearance of the action button:

nextAction.setTitle('Next to Location');
nextAction.setEnabled(false);
nextAction.setVisible(false);


You can also iterate over all action in a panel, calling a function on each action:

// disable all actions
this.requestForm.actions.each(function (action) {
action.enable(false);
});