on 09-25-2016 9:05 PM
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
Hi Tareq,
model should refresh in your code, not sure why its not working, but you try below work around:
1: you can get master list and refresh individual in 1.38
var _oComponent = this.getOwnerComponent();
var oList = _oComponent.oListSelector._oList;
var oListBinding = oList.getBinding("items");
and inside success function :
oListBinding.refresh(true);
Regards,
Akhilesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.