如何显示所有数据形式 oData

How to display all Data form oData

通过 oData,我获得了大约 100 个设备条目。目标是在我的应用程序中显示来自 oData 的所有条目。问题是只显示前大约 50 个条目。我该如何解决这个问题?在我的视图中有什么事情要做吗?

    <mvc:View controllerName="zppb.bde.equi.ZP_EquList.controller.Main" xmlns:mvc="sap.ui.core.mvc" displayBlock="true" xmlns="sap.m">
    <Shell id="shell">
        <App id="idAppMain">
            <pages>
                <Page id="page" title="{i18n>title}">
                    <content>
                        <Table id="idEquipmentTable" items="{MultiInfoSet>/}">
                            <headerToolbar>
                                <Toolbar>
                                    <Button icon="sap-icon://filter" press="onFilterListPress"/>
                                </Toolbar>
                            </headerToolbar>

                            <items>
                                <ColumnListItem type="Navigation" visible="true">
                                    <cells>
.
.
                                    </cells>
                                </ColumnListItem>
                            </items>
                        </Table>
                    </content>
                </Page>
            </pages>
        </App>
    </Shell>
</mvc:View>

一般来说,首选方法是使用 growing 功能,用户向下滚动 table,当他们接近当前列表的末尾时,它会加载更多行。

不需要太多更改:

<Table 
    id="idEquipmentTable" 
    items="{MultiInfoSet>/}"
    growing="true"
    growingThreshold="100"
    growingScrollToLoad="true">

如果您的列表中的项目数量相对较少并且您不希望用户滚动,还有一些其他选项。

您将通过设计指南找到更多相关信息:Responsive Table - Fiori Design Guidelines