pbEnabledStatic - cWebBaseDEO

Determines the automatic DD based enabling/disabling of this DEO should be stopped - making it static

Type: Property

Access: Read/Write

Data Type: Boolean

Parameters: None

Syntax
 Property Boolean pbEnabledStatic

Read Access: Get pbEnabledStatic to BooleanVariable
Write Access: Set pbEnabledStatic to BooleanVariable/Value


Description

A web based data entry object (DEO) will be enabled/disabled automatically based on the status of the DataDictionary object (DDO) to DEO data-binding.

For example, a DisplayOnly DD field (regular or foreign) will be automatically disabled. DEOs can also be enabled/disabled based on a field's committed state, a view's read-only state (IsViewReadOnly) or a view's drilldown navigation state. In some cases, you may wish to disable the behavior and make the DEO's pbEnabled state static. You do this by setting pbEnabledStatic to True.

When pbEnabledStatic is set to True, pbEnabledState is not automatically changed. However, the SetDynamicEnabled method is still sent - it simple tests pbEnabledStatic and does nothing if it is set. This means that SetDynamicEnabled can still be augmented to further customize this behavior.

Note that pbEnabledStatic is not a web-property and cannot be changed dynamically. It is a design-time only property.

The default for pbEnabledStatic is False for most classes. There are some exceptions:
- The cWebColumnLink class sets this True under the assumption that the link should always be enabled.
- Objects based on cWebColumn objects are made static when they are placed inside of a list (cWebList, cWebPromptList) as opposed to a grid (cWebGrid). This can be customized setting the cWebList pbColumnsEnabledStatic property.