Release 10.1A: OpenEdge Development:
Progress Dynamics Advanced Development

> ## Testing whether objects and fields are enabled

> Your application enables and disables objects, and the fields and widgets they contain, during the course of an application session. The `ObjectEnabled` and `FieldsEnabled` properties let you query the current state of the objects, fields, and widgets.

> ##### ObjectEnabled

> This `LOGICAL` property, available for all visual SmartObjects, returns `TRUE` if the object itself has been enabled, and `FALSE` if it has not.

> Normally, the framework enables every SmartObject as the application window initializes, unless the `DisableOnInit` property has been set to `TRUE`. Compare this property with the similar `FieldsEnabled` property for viewers and browsers. When the framework initializes a browser or viewer, its `ObjectEnabled` property is set to `TRUE`. If it has no enabled columns or fields, however, or if it is in `View` mode rather than `Modify` mode, then its `FieldsEnabled` property is `FALSE`. Thus the `FieldsEnabled` property alternates back and forth between `TRUE` and `FALSE` depending on the state of the window and the toolbar buttons, while the `ObjectEnabled` property is normally set to `TRUE` once and left that way.

> ##### FieldsEnabled

> This `LOGICAL` property is `TRUE` when the fields or columns of a viewer or browser are enabled for data entry, and `FALSE` otherwise.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095