on 12-04-2018 11:51 PM
Hi,
I've created a Fiori Element List Report navigating to an Object Page with a facet. Using BOPF and CDS views I've enabled action to Add new record passing a parameter.
When adding a new record it doesn't refresh the facet data immediately. I have to refresh the screen manually to see the new record. Is there a way that it can be refresh on Action completion without doing any UI code?
Abhishek
Hi Abhishek,
In the ListReport there is an attribute called extensionAPI, this object has a method called refreshTable( ) which retrieves data from the backend and update the table, you just need to find a suitable event to call this method and the data will be refreshed automatically. I advise to create an extension of the Object Page and include this logic in the extended controller.
If you have further questions have a look in the SAPUI5 SDK documentation:
Cheers,
Felipe Rodrigues
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello
this seems an old post.
but in case somebody gets the same, I would suggest to look here : Fiori Elements side effects on actions | SAP Community
rgds
Damien
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe you can achieve the refresh with the SideEffect-Annotation --> https://wiki.scn.sap.com/wiki/display/EmTech/OData+4.0+Vocabularies+-+SAP+Common#SideEffectsType
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.