Skip to Content
0

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

Mar 27 at 01:20 PM

31

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Gregor Wolf
Mar 27 at 02:51 PM
0

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

Show 4 Share
10 |10000 characters needed characters left characters exceeded

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

0

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.

0

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

0

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.

0