我现在有像这样检索的tableitems:
<Table
id="table"
width="auto"
class="sapUiResponsiveMargin"
items="{
path: '/InvoiceSet',
sorter: {
path: 'InvNr',
descending: false
},
parameters: {
expand: 'NavInvoiceItem'
}
}"
但我想添加扩展NavInvoiceAttachment 我试过这个:
expand: 'NavInvoiceItem',
'NavInvoiceAttachments'
和这个
expand: ['NavInvoiceItem',
'NavInvoiceAttachments']
和这个
expand: {'NavInvoiceItem',
'NavInvoiceAttachments'}
但似乎没有任何效果。
答案 0 :(得分:0)
正如Marvin Smit评论的解决方案是一个单独的字符串,用这样的逗号分隔:
expand: 'NavInvoiceItem,NavInvoiceAttachments'