且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

加载实体而不将其绑定到视图

更新时间:2023-10-10 18:59:34

要显式触发对实体的请求,可以使用oData模型的read函数.

To explicitly trigger a request to an entity you may use the read function of the oData model.

这是官方文档:
https://openui5 .hana.ondemand.com/docs/api/symbols/sap.ui.model.odata.v2.ODataModel.html#read

Here is the official documentation:
https://openui5.hana.ondemand.com/docs/api/symbols/sap.ui.model.odata.v2.ODataModel.html#read

this.getView().getModel().read("/BananaSet('001')", {
    success: function (oData) {
        // do something with the Banana data
    }
})