Skip to Content
0
Former Member
Sep 25, 2016 at 08:05 PM

Refresh Master view list from Create view

887 Views

I have a Create View to create an order

oModel.create('/ZPCDEHDSet', requestBody, {


success: function(oData, oResponse) {

sap.m.MessageToast.show("Order Saved Successfully");


oModel.refresh(true);


//that.getEventBus().publish("Create", "Changed", { sEntityPath : "" });


  },


error: function(oError) {
sap.m.MessageToast.show("Problem happened while saving the order");
  }


}


);

I am not able to refresh the master view after creating the new order successfully.

I am using sapui5 v 1.38

previously I was using getEventBus to call the refresh in the Master view in v. 1.28 but with the new version it is not defined

Note: I used the Master Details template in sapwebide

I need your help please