[英]OPENUI5 ODATAv4 FunctionImport binding not working
Currently, I have set up OPENUI5 to use a ODataV4 data source. 目前,我已经设置了OPENUI5来使用ODataV4数据源。 This source includes a functionImport on a Collection without parameters.
此源包含不带参数的Collection上的functionImport。 In the XML View, I have defined
在XML视图中,我已定义
<Title text="{/Orders/OrderService.MyFancyFunction()}"/>
In the network trace I can see the function being called correctly: 在网络跟踪中,我可以看到正确调用的函数:
Request: 请求:
GET Orders/OrderService.MyFancyFunction() HTTP/1.1
Response: 响应:
{"@odata.context":"http://localhost:50156/odata/$metadata#Edm.String","value":"Happy Hippo"}
However, the string is not shown on screen; 但是,字符串没有显示在屏幕上; inspecting the element through the UI5 inspector shows "text" being an empty string, but also having a correct binding to the function shown above.
通过UI5检查器检查元素显示“text”是一个空字符串,但也正确绑定到上面显示的函数。
Any ideas? 有任何想法吗?
Thanks, regards 感谢和问候
Jörg Fischer JörgFischer
这似乎是OPENUI5中当前ODataV4实现中的一个错误:当函数不使用命名空间时,它很有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.