【发布时间】:2018-10-16 12:35:32
【问题描述】:
我想在使用 CRUD 保存数据后重新加载“菜单”页面。
var sUrl = "/sap/opu/odata/sap/ZGW_VISTORIA_SRV";
var oModel = new sap.ui.model.odata.ODataModel(sUrl, true);
var rota = this.getOwnerComponent().getRouter();
var page = this;
oModel.create('/vistoria', dados, null,
function () {
MessageBox.success('Cadastrado com sucesso!', {
onClose: function (sActionClicked) {
oStorage.clear();
oStorage.removeAll();
// oStorage.put("Save", {
// isSave: true
// });
page.getView().exit();
page.getView().destroy();
// oStorage.get("Menu").menu.getModel().refresh(true);
rota.navTo("Menu", false);
// window.location.reload(window.history.go(-3));
// sap.ui.getCore().byId("Menu").getModel().refresh(true);
}
});
},
function () {
MessageBox.error('Erro ao cadastrar o veiculo!');
}
);
我尝试了很多方法,因为我需要删除我保存在表单中的信息。 那么,你能帮帮我吗?
【问题讨论】:
-
我的回答对你有用吗?还是您需要进一步的帮助?
标签: javascript sapui5