cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Elements Object Page refresh facet on adding new record

abhiperiwal
Participant
0 Kudos

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

KevinKäding
Explorer
0 Kudos

Hi abhishek.periwal4,

did you solved your problem of refreshing the Object Page?

I have the same problem right now in Public Cloud Environment.

Many greetings

Kevin

Accepted Solutions (0)

Answers (3)

Answers (3)

feliperodrigues
Contributor

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:

https://sapui5.hana.ondemand.com/sdk/#/api/sap.suite.ui.generic.template.ListReport.extensionAPI.Ext...

Cheers,

Felipe Rodrigues

damienwyzeon
Discoverer
0 Kudos

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

cwolter90
Participant
0 Kudos

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