2017-10-22 11 views
0

다음 모델이 있습니다. SAPUI5보기, 패널 헤더의 모델 항목에 액세스

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

2: { 
    0:{} 
    1:{} 
    2:{} 
    categoryDesc: "Documentation  
} 
] 

다음 뷰

.. 문제는, 패널의 정확한 수는 2이지만 categoryDesc이 표시되지 않는 디스플레이되고있다

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

           </content> 
          </Panel> 
         </CustomListItem> 
        </items> 
       </List> 

.

그래서 "view /> categories"가 배열 요소 1과 2를 선택하면 categoryDesc를 검색 할 수 없습니다.

아이디어가 있으십니까? 명명 된 모델을 사용하고 있기 때문에

답변

1

당신은 사용해야

{view>categoryDesc}