我想从 SAPUI5 控制器调用以下 oData URL。
/EmpSet('453233')/?$expand=EmpDetails
我知道 oData 模型概念以及如何使用 oData 模型调用正常读取。但是,我正在努力调用值为 4533233 的上述 URL。
据我了解,我可以按如下方式调用它:
oModel1.read( "/EmpSet('453233')", {
urlParameters: {"$expand": "EmpDetails"},
success: jQuery.proxy(this._fGetSuccess, this), error:
jQuery.proxy(this._fGetError, this) });
但是,该调用进行了一次折腾,并且从未命中 _fGetSuccess 或 _fGetError 方法。
有人可以指导我如何从 SAP UI5 控制器调用上述 URL
问候,
法迪