Skip to Content
0

How to reload the master and detail page at a go in SAP UI5?

Mar 17, 2017 at 03:53 AM

403

avatar image

I have a add functionality on my Master Page, on click of that functionality a dialog box opens and creates a new entry.After successful creation of entry I have to show it on View.Previously I usually used location.reload(true), but as this functionality is avoided in WEB IDE, I am searching for an alternative. I tried like this: On successful creation I again called onInit method but this helps me to load only the master page but not able to load the respective detail page details. I am newbie in this technology, please I require the valuable suggestions.Thanks in advance.

sap.m.MessageToast.show("Site Created Successfully");dialog.close();
thisObj.onInit()
This is the codeI have written in success response.
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Shilpa Ramamurthy
Mar 17, 2017 at 06:09 AM
0

Hi Hitesh,

Why don't you try a reload of the model?

https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.ui.model.odata.ODataModel.html#refresh

Regards,

Shilpa

Share
10 |10000 characters needed characters left characters exceeded