Skip to Content

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

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.
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 17, 2017 at 06:09 AM

    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

    Add comment
    10|10000 characters needed characters exceeded