我正在尝试使用Northwind服务(即https://services.odata.org/V2/Northwind/Northwind.svc/Products
)构建SmartTable我可以在SmartTable中获取数据,但无法获取SmartFilterBar。
这是代码,
<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>