Progress
ADM 2 Reference
disableFields (viewer.p)
Disables the fields in a list represented by the AppBuilder generated preprocessor value {&ENABLED–FIELDS}.
Parameters:INPUT pcFieldType AS CHARACTER
Can have values of
“
All”
or“
Create“.
Returns: Nothing (procedure)Notes:
- disableFields is invoked when a SmartDataViewer’s RowObject fields are to be disabled without disabling other fields or variables in the viewer.
- The ENABLED–FIELDS preprocessor value contains a list of RowObject fields that are enabled in a SmartDataViewer. At initialization time, this is turned into the EnabledHandles property, which stores a list of the widget handles of the enabled fields in the SmartDataViewer’s frame, allowing efficient access to them.
- The pcFieldType parameter can have a value of
“
All”
or“
Create”
. This allows disabling of all the fields or only fields that were used to create (add/copy) a new record. The“
Create”
option is not yet supported.- disableFields re-publishes the ‘disableFields’ event to disable fields in any GroupAssign targets.
- When a field in the list is a SmartObject itself (for example, a SmartField object), disableField is run in the SmartObject to disable it.
- For editor fields, READ–ONLY is turned on rather than making the field insensitive since editors need to be sensitive for scrolling.
- disableFields can be customized when you require additional processing when RowObject fields are disabled. You might want to do this to disable or hide other widgets not associated with RowObject fields.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |