Load data automatically in Fiori List Report
Using the Fiori List Report template of SAP in Business Application Studio contains no setting to automatically load data into the table. Users need to explicitly press the Go button so that the list is populated.
In case You want to fill the table automatically, please add the following annotations to the manifest.json
of the generated project.
OData V2 – sap.suite.ui.generic.template.ListReport
Use the loadDataOnAppLaunch
property.
"pages": { "ListReport|TechDataGen": { "entitySet": "TechDataGen", "component": { "name": "sap.suite.ui.generic.template.ListReport", "list": true, "settings": { "condensedTableLayout": true, "smartVariantManagement": true, "enableTableFilterInPageVariant": true, "dataLoadSettings": { "loadDataOnAppLaunch": "always" }, "filterSettings": { "dateSettings": { "useDateRange": true } }, "tableSettings": { "type": "ResponsiveTable" } } } } }
OData V4 – sap.fe.templates.ListReport
Use the initialLoad
property.
"targets": { "GenerationList": { "type": "Component", "id": "GenerationList", "name": "sap.fe.templates.ListReport", "options": { "settings": { "contextPath": "/Generation", "variantManagement": "Page", "initialLoad": true, "navigation": { "Generation": { "detail": { "route": "GenerationObjectPage" } } }, "controlConfiguration": { "@com.sap.vocabularies.UI.v1.LineItem": { "tableSettings": { "type": "ResponsiveTable" } } } } } } }
As result the table loads the data be default after launching the List Report application.
Share this content: