我正在尝试在XML视图的List元素的path参数中输入以下构造的路径:dataremote> / Categories({dataremote> CategoryID})/ Products。
1)我在调试中检查了'dataremote> / Categories({dataremote> CategoryID})/ Products'作为'dataremote> / Categories(4)/ Products'的价值。
但是当我使用'dataremote> / Categories({dataremote> CategoryID})/ Products'作为List参数路径的路径时,不会获取任何数据。
2)现在如果我把硬编码的'dataremote> / Categories(4)/ Products'作为路径参数的值,那么列表就会被填充,我已经尝试了所有选项但不确定为什么会这样,他们俩都应该工作,因为他们有相同的字符串值。
<List
id="CatList"
class="sapUiResponsiveMargin"
width="auto"
items="{
path : 'dataremote>/Categories({dataremote>CategoryID})/Products'
,
parameters : { select: 'ProductID,ProductName '}
}">
仙人
答案 0 :(得分:0)
通过使用控制器的绑定解决它!
谢谢!