enableFieldActions (fieldName, enable)
enableFieldActions (fieldName, enable)
Technologies / User Interface Add-Ins / Parts for Forms / Enable or Disable Actions of Field
Enable or disable a form field’s actions.
Use
For example, when selecting from an auto-numbered table, such as activity_log or location_id, the user may find it error-prone or meaningless to enter a number into the edit box; they need user-friendly fields in the Select Value dialog box. Furthermore, for a general table like activity_log, there are records belonging to different activities, so entering the wrong primary key value may cause problems. The select value can filter to just the correct records.
Along similar lines, you may want to use a filter on the Select Value dialog box to restrict to applicable records. By disabling the input box, you can enforce that the user selects only from the correct set of records, rather than entering a value that exists in the table but is invalid in the context.
Parameters:
fieldName
(String): the full name of the field;
enable
(boolean): whether to enable or disable actions.
Example:
this.optionsForm.enableField('wr.priority', true);
http://localhost:8080/archibus/ab-ex-form-enable-field-actions.axvw