使用智能表的智能过滤器条实现

时间:2018-11-02 06:32:50

标签: filter sapui5 sapui5-smarttable

嗨,我在实现智能过滤器栏时遇到错误。

enter image description here

代码供您参考:

<smartFilterBar:SmartFilterBar id="smartFilterBar" entitySet="Projects" persistencyKey="SmartFilter_Explored">
   <smartFilterBar:controlConfiguration>
      <smartFilterBar:ControlConfiguration key="Bukrs">
         <smartFilterBar:defaultFilterValues>
            <smartFilterBar:SelectOption low="0001"></smartFilterBar:SelectOption>
         </smartFilterBar:defaultFilterValues>
      </smartFilterBar:ControlConfiguration>
   </smartFilterBar:controlConfiguration>
</smartFilterBar:SmartFilterBar>
<smartTable:SmartTable id="artiT" entitySet="Projects"
   tableBindingPath="{path: 'base>/Projects', filters: [{path: 'Archieved', operator: 'EQ', value1: false}] , parameters: {expand:'RegionCountryDetails,SkillSetDetails'}}"
   smartFilterId="smartFilterBar" tableType="ResponsiveTable" useExportToExcel="true" beforeExport="onBeforeExport"
   useVariantManagement="false" useTablePersonalisation="true" header="Projects" showRowCount="true"
   persistencyKey="SmartTableAnalytical_Explored" enableAutoBinding="true" demandPopin="true" class="sapUiResponsiveContentPadding"
   initiallyVisibleFields="ProjectId,Name,City,StartDate,EndDate,TeamSize" beforeRebindTable="onBeforeRebindTable" showFullScreenButton="true"/>

0 个答案:

没有答案