CDS - Grouping Action Parameters in the Action Parameter Dialog
Hello Everyone! 👋
Grouping Action Parameters in the Action Parameter Dialog
We already know that fields on the Object Page can be grouped easily using Facets, making the UI cleaner and more intuitive. The good news is this capability is now available for action popups as well.
With the new facet purpose OperationalParameterFacets, you can organize action parameters into logical groups inside the action parameter dialog.
Using the OperationalParameterFacets annotation, action parameters can be grouped under specific titles, just like facets on the Object Page.
@EndUserText.label: 'Abstract Test'
define abstract entity ZGROUP_PARAMETERS
{
@UI.facet: [
{ purpose: #OPERATION_PARAMETER,
id: 'FieldGroup1',
label: 'Field Group 1',
type: #FIELDGROUP_REFERENCE,
targetQualifier: 'FieldGroup1',
position: 10 },
{ purpose: #OPERATION_PARAMETER,
id: 'FieldGroup2',
label: 'Field Group 2',
type: #FIELDGROUP_REFERENCE,
targetQualifier: 'FieldGroup2',
position: 20 }
]
@UI.fieldGroup: [{ qualifier: 'FieldGroup1', position: 10 }]
element_name1 : abap.char(100);
@UI.fieldGroup: [{ qualifier: 'FieldGroup1', position: 20 }]
element_name2 : abap.char(100);
@UI.fieldGroup: [{ qualifier: 'FieldGroup1', position: 30 }]
element_name3 : abap.char(100);
@UI.fieldGroup: [{ qualifier: 'FieldGroup2', position: 10 }]
element_name4 : abap.char(100);
@UI.fieldGroup: [{ qualifier: 'FieldGroup2', position: 20 }]
element_name5 : abap.char(100);
@UI.fieldGroup: [{ qualifier: 'FieldGroup2', position: 30 }]
element_name6 : abap.char(100);
}
Note:
These CDS annotations are available only in the latest versions of SAP S/4HANA Public Cloud and BTP ABAP Environment.
For Private Cloud and On-Premise systems running UI5 1.136, you must use XML-based annotations.
For more information, check the offcial link:
SAP UI5 Ondemand

Comments
Post a Comment