cancel
Showing results for 
Search instead for 
Did you mean: 

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

afordham
Participant

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

Accepted Solutions (1)

Accepted Solutions (1)

mdcastle
Active Participant

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. 

Answers (1)

Answers (1)

gregorw
Active Contributor
0 Kudos

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

afordham
Participant
0 Kudos

Hi Gregor,

Thanks for the code, but I'm afraid I'm not a UI5 or Javascript developer so that goes straight over my head! I was hoping that there would be some CDS annotation or BOPF method that I could implement to do the same thing.

Thanks,

Andrew

gregorw
Active Contributor
0 Kudos

I think you should give it a try. Create the enhancement with the Web IDE Wizzard and then just copy and paste my coding in the created controller. And remove or comment the additional XML that was added in the view.

afordham
Participant
0 Kudos

Thanks Gregor. I've implemented the FilterBar extension using your code and it works, as you said it would. I think I'm just a little disappointed that the new ABAP programming model, which claims you can create a Fiori app just by annotating CDS views, also involves changes to the generated Business Object and extensions to the app to get (what I would consider to be) standard functionality working.

Anyway, thanks very much for your help!

Andrew

gregorw
Active Contributor
0 Kudos

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.