Working With Field and Per-Field Action Buttons

The Form manages a collection of Ab.form.Field objects that represent form fields defined in the AXVW, and wraps actual field input DOM elements. Each Field object contains:

  • fieldDef: reference to the Ab.data.FieldDef object containing schema field information
  • dom : reference to the field input DOM element
  • actions : Ext.util.MixedCollection of per-field Ab.view.Action objects for each field button such as Select Value or document field buttons.

You can use the actions collection to enable, disable, show or hide specific action buttons for specific fields:

// disable all buttons for ls.doc field
this.leaseForm.fields.get('ls.ls_doc').actions.each(function (action) {
action.disable();
});