Skip to Content
0
Jun 22, 2018 at 01:41 PM

SAPui5 SmartFilterBar Variant Management Missing Button

714 Views Last edit Jun 22, 2018 at 02:03 PM 4 rev

Hello,

currently I'm using a SmartFilterBar (sap.ui.comp.filterbar.FilterBar) to filter my SmartTable. I want to use the VariantManagement in the FilterBar and not in the SmartTable Header. I don't know why is the VariantManager hidden/invisible in the SmartFilterBar.

My View:

<smartFilterBar:SmartFilterBar 
       id="smartFilterBarHistory" 
       entitySet="HistoryDataSet"
       enableBasicSearch="true"
       liveMode="false" 
       entityType="HistoryData"
       sPersistencyKey="SerialComponentHistorySF">
    <smartFilterBar:layoutData>
        <FlexItemData shrinkFactor="0"/>
    </smartFilterBar:layoutData>
</smartFilterBar:SmartFilterBar>

<smartTable:SmartTable 
  id="smartTableHistory" 
  smartFilterId="smartFilterBarHistory"
  tableType="ResponsiveTable" 
  useExportToExcel="true" 
  beforeExport="onBeforeExport"
  useVariantManagement="true"
  useTablePersonalisation="true"
  showFullScreenButton="true"
  editable="false"
  enableAutoBinding="true" 
  persistencyKey="SerialComponentHistoryST"
  app:useSmartField="true">
    <t:Table selectionBehavior="RowOnly" width="100%"/>
</smartTable:SmartTable>

Screenshot:

Have anybody an idea? The filters works fine after setup the OData Service.

Best Regards

Attachments

sadsadsadsa.jpg (57.9 kB)