XMLビューのList要素のpathパラメータに、以下のように作成したパスを入力しようとしています:dataremote>/Categories({dataremote> CategoryID})/ Products。SAPUI5リストパスパラメータ:構築された文字列を渡すことができません
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 '}
}">
リシ
http://stackoverflow.com/questions/28586513/ui5-dynamically-build-listitems-from-json-with-different-icons – Rishabh