未为SmartTable加载SmartFilterBar

时间:2018-10-31 12:44:03

标签: filter sapui5 smart-table

我正在尝试使用Northwind服务(即https://services.odata.org/V2/Northwind/Northwind.svc/Products

)构建SmartTable

我可以在SmartTable中获取数据,但无法获取SmartFilterBar。

错误截图:
Error screenshot

这是代码,

<smartFilterBar:SmartFilterBar id="smartFilterBar" entitySet="Products" persistencyKey="SmartFilter_Explored">
                        <smartFilterBar:controlConfiguration>
                            <smartFilterBar:ControlConfiguration key="ProductName">
                                <smartFilterBar:defaultFilterValues>
                                    <smartFilterBar:SelectOption low="0001"></smartFilterBar:SelectOption>
                                </smartFilterBar:defaultFilterValues>
                            </smartFilterBar:ControlConfiguration>
                        </smartFilterBar:controlConfiguration>
                    </smartFilterBar:SmartFilterBar>
                    <smartTable:SmartTable id="ID" entitySet="Products" smartFilterId="smartFilterBar" tableType="ResponsiveTable" useExportToExcel="true"
                        beforeExport="onBeforeExport" useVariantManagement="false" useTablePersonalisation="true" header="Line Items" showRowCount="true"
                        persistencyKey="SmartTableAnalytical_Explored" enableAutoBinding="true" initiallyVisibleFields="ProductID,ProductName" demandPopin="true"
                        class="sapUiResponsiveContentPadding"></smartTable:SmartTable>

0 个答案:

没有答案