Skip to Content

How can I populate Fiori Elements List Report data when app is launched?

Hi,

I have created a Fiori Elements List Report app using an annotated CDS view. When the app is launched, the message "No items selected. To start, enter your selection criteria and run the search" is displayed. The user has to hit the Go button to call the OData service to populate the list data.

My OData service will never contain much data. Is it possible to annotate the CDS to immediately populate the data when the app is launched?

Thanks,

Andrew

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Mar 27 at 02:51 PM

    Hi Andrew,

    please check out the extension I've implemented for the list report to activate Live Mode with by calling setLiveMode(true); at ListReportExt.controller.js. I got support for this in the UI5 Slack channel.

    Best regards
    Gregor

    Add comment
    10|10000 characters needed characters exceeded

    • I agree with you. Also to enable the Excel export an addition setting done in the Web IDE is required. But I hope that SAP will improve this area in future releases.

  • Sep 18 at 01:15 PM

    I appreciate this has already been answered but an alternative is to do this through the UI Adaptation Editor.

    1. Right click on the Project in Web IDE->UI Adaptation Editor
    2. When the UI Editor opens click 'Adapt UI'.
    3. Click on the result table so that SmartTable displays in the right hand pane.
    4. Search for property name 'Enable Auto Binding' and change the value to true.
    5. Save the project. 
    Add comment
    10|10000 characters needed characters exceeded