View SAPUI5视图,访问面板标题的模型项

View SAPUI5视图,访问面板标题的模型项,view,sapui5,View,Sapui5,我有下面的型号 categories [ 1: { 0:{} 1:{} categoryDesc: "Production" } 2: { 0:{} 1:{} 2:{} categoryDesc: "Documentation } ] 以及以下观点 <List id="idList" items="{view>/categories}"> <items>

我有下面的型号

categories [
1: {
    0:{}
    1:{}
    categoryDesc: "Production"
}

2: {
    0:{}
    1:{}
    2:{}
    categoryDesc: "Documentation    
}
]
以及以下观点

<List id="idList" items="{view>/categories}">
                    <items>
                        <CustomListItem>
                            <Panel expandable="true" expanded="false" headerText="{categoryDesc}">
                                <content>

                                </content>
                            </Panel>
                        </CustomListItem>
                    </items>
                </List>
问题是,显示的面板数量正确2,但未显示categoryDesc

因此view/>categories正在拾取数组元素1和2,很好,我无法检索categoryDesc


有什么想法吗?

因为您使用的是命名模型,所以应该使用

{view>categoryDesc}