Definition
You can use presentation control to display and hide attribute groups and assign a dynamic description to these groups. If a group is hidden, its lower-level attributes are also hidden.
The following table contains an overview of the presentation control characteristics:
Application usage | CG - Presentation control |
Reference object / cardinality | Attribute group / 1:1 |
Versioned | Yes |
Redefinition | Yes |
Implementation class | CL_CRM_ISU_BRF_APPL_USAGE_CG |
Inbound parameter | Variable according to the context generated |
Return value | GROUP_CONTROL/GROUP_TEXT See following table |
Expression Type for Function: Decision Table
Generate an entry in the decision table for every admissible value to ensure that the BRF application returns the required result:
Column | Description | Possible Entries | Data Element | Comment |
---|---|---|---|---|
Condition | - | - | - | - |
Such as attribute X | Attribute used as the basis for defining the field value | - | - | - |
Boolean expression | Applies or does not apply | - | - | - |
Result | - | - | - | - |
GROUP_CONTROL | Presentation control |
| CHAR1 | - |
GROUP_CONTROL_LOCK | Ability to expand attribute group |
| CHAR1 | - |
GROUP_TEXT | Descriptive text | Requested text | STRING | If no text is returned here, the system uses the group description. |
GROUP_ICON | Attribute group icon | - | STRING | - |
GROUP_ICON_TEXT | Text for tooltip | - | STRING | - |
Note
At runtime, the system processes the decision table again if an attribute created by choosing Add Context Attribute
has changed.
Example
A product contains an attribute Payment Method
with the characteristic Automatic Debit
. If this attribute is selected, the attribute group Contract Account
with the associated attributes Bank ID
and Account Number
are also visible. The system uses the attribute Automatic Debit
as a context-dependent input parameter and the decision table is influenced according to this for presentation control for the attribute group Contract Account
.
The decision table contains the following values in the example shown here:
Condition - Automatic Debit | Result - GROUP_CONTROL | Result - GROUP_TEXT |
---|---|---|
' ' | 'B' | - |
‘X’ | 'A' |
|