cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual element not refreshed on Save RAP SAP

santosh_fhalke
Participant
0 Kudos
409

Hi Experts,

We have implemented non-draft managed application with virtual elements. If we are opening the app first time, system is checking the virtual elements & displaying the corresponding values for the same.

However, if I will do changes on the object page for related field for which virtual elements need to be updated/determined & click on save then virtual element is not getting determined. If I will open same record from list page then on object page I am not able to see virtual element field is updated.

However, after save if we will refresh the whole page then virtual elements are getting determined as call goes to the backend. I believe on save button, virtual elements are not getting determined again as system does not recalculate the virtual elements.

Does anyone have any idea, how to recalculate/refresh the virtual elements on save.

Thanks in Advance.

Regards,

Santosh F.

 

Regards,

Santosh F.

View Entire Topic
WRoeckelein
Active Participant

Hi @santosh_fhalke , 

you need side effect annotations for this, cf https://ui5.sap.com/#/topic/18b17bdd49d1436fa9172cbb01e26544 .

Regards,

  Wolfgang

santosh_fhalke
Participant
0 Kudos

Hi Wolfgang,

I am using virtual elements & it is getting calculated once the page will refreshed/loaded hence side effects will not be useful.

Do you have any other solution. For eg. how we can refresh the page once we will click on save

Regards,

Santosh F.

WRoeckelein
Active Participant
0 Kudos
This is exactly what side effects in non-draft are for: Trigger Refresh of not-edited fields after save.
santosh_fhalke
Participant
0 Kudos

Hi Wolfgang,

Thanks for your reply.

I just need to refresh the page. Do you have any blog or steps how to reload/refresh the page on save for Non-Draft.

Regards,

Santosh F.