Fiori List Report with Multiple Views
I have developed an OData project in SEGW by exposing CDS views as reference data sources.
Step 1. Create SAPUI5 project using Fiori List Report template.
UI.SelectionField and UI annotations are maintained in the CDS view which is why it displays the default Selection Screen and Table Columns.
Step 2. Go to the annotations.xml file and add the UI.SelectionVariant annotation with Annotation Modeler.
UI.SelectionVariant is used to denote a combination of parameters and filters used to query the annotated entity set. In this case, I have created 1 SelectionVariant annotation for each entity set as shown.
Step 3: once you save it, your file updates with the below code automatically.
Step 4: To include different entity sets and table settings in multiple views, specify an entity set for each tab in the "qucikVariantSelectionX
"
section.If you do not specify an entity set under "/"variants", the leading entity set is used as a default.
Step 5: Save and Execute you will see
Comments
Post a Comment