从JSON文件聚合绑定SAPUi5

从JSON文件聚合绑定SAPUi5,sapui5,Sapui5,我是SAP UI5的实习生,很难将JSON文件中的数据访问到表中 我的JSON数据的格式如下(这是一个片段): 我试图在我的视图中使用这些数据制作一个表,其中包括: <!--sap.m.table--> <Table id="idTable" items= "{path:'{data>/}',

我是SAP UI5的实习生,很难将JSON文件中的数据访问到表中 我的JSON数据的格式如下(这是一个片段):

我试图在我的视图中使用这些数据制作一个表,其中包括:

                    <!--sap.m.table-->
                <Table
                id="idTable"
                items= "{path:'{data>/}',
                        mode: 'sap.ui.model.BindingMode.OneWay'}"
               .....
                >
                    <headerToolbar>
                        <Toolbar>
                            <Title text="Orange"/>
                        </Toolbar>
                    </headerToolbar>
                    <columns>
                        <Column>
                            <Text text="Component" />
                        </Column>
                        <Column>
                            <Text text="Number of failed Tests" />
                        </Column>
                        <Column>
                            <Text text="Number of Bugs" />
                        </Column>
                        <Column>
                            <Text text="Total Tests" />
                        </Column>
                        <Column>
                            <Text text="Pass/Fail Ratio" />
                        </Column>
                    </columns>
                    <items>
                        <ColumnListItem         
                        press= "onItemSelected"
                        type= "Navigation">
                            <cells>
                                <ObjectListItem title="{data>name}"/>   
                            </cells>
                           .........
                           .........
                        </ColumnListItem>
                    </items>
                </Table>

.........
.........
当我运行代码时,我的表不显示任何数据

我有一个假设,这个问题必须处理我如何编写路径变量,或者其他相关的问题。
我想知道是否有熟悉这个问题的人可以帮助我

表'items'聚合中的语法错误

<Table
  id="idTable"
  items= "{path:'data>/',
  mode: 'sap.ui.model.BindingMode.OneWay'}"
>

此外,请记住,要正常工作,单元格的数量应与列的数量相同

<cells>
  <ObjectListItem title="{data>name}"/>  
  <ObjectListItem title="{data>otherProperty1}"/>  
  <ObjectListItem title="{data>otherProperty2}"/>  
  <ObjectListItem title="{data>otherProperty3}"/>  
  <ObjectListItem title="{data>otherProperty4}"/>   
</cells>

表“项”聚合中的语法错误

<Table
  id="idTable"
  items= "{path:'data>/',
  mode: 'sap.ui.model.BindingMode.OneWay'}"
>

此外,请记住,要正常工作,单元格的数量应与列的数量相同

<cells>
  <ObjectListItem title="{data>name}"/>  
  <ObjectListItem title="{data>otherProperty1}"/>  
  <ObjectListItem title="{data>otherProperty2}"/>  
  <ObjectListItem title="{data>otherProperty3}"/>  
  <ObjectListItem title="{data>otherProperty4}"/>   
</cells>