无需批处理Sapui5的具有读取/创建odata的成功/错误处理程序

时间:2019-01-24 11:26:39

标签: callback odata sapui5 handler

有什么方法可以触发odata create回调,而无需批处理请求? 我使用此代码,但显然它不起作用,因为odata无法处理批处理请求。

this.getOwnerComponent().getModel("model1").create("/entity", updateEntry , {   
    success: function() {   
        sap.m.MessageBox.success("Registered.", {
            title: "success",                                      
            initialFocus: null                                   
        });
    },
    error: function() {   
        sap.m.MessageBox.error("Error ", {
            title: "Error",                                      
            initialFocus: null                                   
        });
    }
});

0 个答案:

没有答案