FieldRules

Public ReadOnly Property FieldRules As Blackbaud.AppFx.BatchUI.DynamicFieldHelper

The FieldRules property has four major collections which rules can be added. The DefineFieldRules event is used to set up the business logic for field behavior. The collection managed by FieldRules allows new handler code to be easier to read. Since batch types support entering a variety of data, some fields may need to be required, validated, or disabled based on the row's context. In this event, these rules can be added to the BatchEntryHandler's FieldRules property.

Rules Collection Description

ValidInContextRules

When a field becomes not valid in context, then the field's value is cleared, the field is disabled, and the field is marked as not required. When a field becomes valid in context, then the field is enabled and populated with the default value.

EnabledRules

Defines the criteria used to determine if the field is enabled.

RequiredRules

Defines the criteria used to determine if the field is required input.

VisibleRules

Defines the criteria used to determine if the field is visible.