/AWS1/CL_PP2CONDBEHAVIOR¶
The set of conditional rules that determine a field's resolved requirement based on the values of other fields in the same registration form. Attached to fields whose FieldRequirement is CONDITIONAL.
Evaluation proceeds top-to-bottom through Rules. The first rule whose conditions all evaluate to true wins and its behavior is returned. If no rule matches, the DefaultBehavior is returned.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
it_rules TYPE /AWS1/CL_PP2CONDITIONALRULE=>TT_CONDITIONALRULELIST TT_CONDITIONALRULELIST¶
An ordered list of conditional rules. Rules are evaluated top-to-bottom and the first rule whose conditions all evaluate to true determines the field's behavior. Rules whose conditions do not all match are skipped and evaluation continues to the next rule.
iv_defaultbehavior TYPE /AWS1/PP2CONDFIELDBEHAVIOR /AWS1/PP2CONDFIELDBEHAVIOR¶
The field behavior that applies when no conditional rule in Rules matches. Valid values are REQUIRED, OPTIONAL, and DISALLOWED.
Queryable Attributes¶
Rules¶
An ordered list of conditional rules. Rules are evaluated top-to-bottom and the first rule whose conditions all evaluate to true determines the field's behavior. Rules whose conditions do not all match are skipped and evaluation continues to the next rule.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_RULES() |
Getter for RULES, with configurable default |
ASK_RULES() |
Getter for RULES w/ exceptions if field has no value |
HAS_RULES() |
Determine if RULES has a value |
DefaultBehavior¶
The field behavior that applies when no conditional rule in Rules matches. Valid values are REQUIRED, OPTIONAL, and DISALLOWED.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_DEFAULTBEHAVIOR() |
Getter for DEFAULTBEHAVIOR, with configurable default |
ASK_DEFAULTBEHAVIOR() |
Getter for DEFAULTBEHAVIOR w/ exceptions if field has no val |
HAS_DEFAULTBEHAVIOR() |
Determine if DEFAULTBEHAVIOR has a value |