У меня есть интеллектуальная таблица и интеллектуальный фильтр, определенные следующим образом:
<smartFilterBar:SmartFilterBar id="smartFilterBar" entitySet="MeldungenSet" persistencyKey="SmartFilter_Explored">
<!-- layout data used to make the table growing but the filter bar fixed -->
<smartFilterBar:layoutData>
<FlexItemData shrinkFactor="0"/>
</smartFilterBar:layoutData>
<smartFilterBar:controlConfiguration>
<smartFilterBar:ControlConfiguration key="ID" visibleInAdvancedArea="true" preventInitialDataFetchInValueHelpDialog="false"></smartFilterBar:ControlConfiguration>
<smartFilterBar:ControlConfiguration key="MarktID" visibleInAdvancedArea="true" preventInitialDataFetchInValueHelpDialog="false"></smartFilterBar:ControlConfiguration>
<smartFilterBar:ControlConfiguration key="Kurztext" visibleInAdvancedArea="true" preventInitialDataFetchInValueHelpDialog="false"></smartFilterBar:ControlConfiguration>
</smartFilterBar:controlConfiguration>
</smartFilterBar:SmartFilterBar>
<smartTable:SmartTable entitySet="MeldungenSet" smartFilterId="smartFilterBar" useExportToExcel="true" beforeExport="onBeforeExport"
useTablePersonalisation="true" header="{worklistView>/meldungenTableTitle}" showRowCount="false" persistencyKey="SmartTableRefApp_Explored"
showFullScreenButton="true" enableAutoBinding="true" beforeRebindTable="onBeforeRebindTable"
initiallyVisibleFields="ID,MarktID,Datum,Kurztext,AngelVon,LetzterÄnderer,Ändererungsdatum" ignoredFields="RstID,StatusID,GewerkID">
<!-- layout data used to make the table growing but the filter bar fixed -->
<smartTable:layoutData>
<FlexItemData growFactor="1" baseSize="0%"/>
</smartTable:layoutData>
<Table id="table" width="auto" noDataText="{worklistView>/tableNoDataText}" busyIndicatorDelay="{worklistView>/tableBusyDelay}"
growing="true" growingScrollToLoad="true" updateFinished=".onUpdateFinished">
<headerToolbar>
<OverflowToolbar>
<Title id="tableHeader" text="{worklistView>/worklistTableTitle}" level="H3"/>
<ToolbarSpacer/>
<SearchField id="searchField" tooltip="{i18n>worklistSearchTooltip}" search=".onSearch" liveChange="onLiveChange">
<layoutData>
<OverflowToolbarLayoutData maxWidth="200px" priority="NeverOverflow"/>
</layoutData>
</SearchField>
</OverflowToolbar>
</headerToolbar>
<columns>
<Column visible="true">
<customData>
<core:CustomData key="p13nData"
value="{'columnKey': 'Markt/Name', 'leadingProperty': 'Markt/Name', 'sortProperty': 'Markt/Name', 'filterProperty': 'Markt/Name', 'columnIndex':'2', 'type': 'text'}"/>
</customData>
<Text text="{i18n>marktName}"/>
</Column>
<Column visible="true">
<customData>
<core:CustomData key="p13nData"
value="{'columnKey': 'Status/Name', 'leadingProperty': 'Status/Name', 'sortProperty': 'Status/Name', 'filterProperty': 'Status/Name', 'columnIndex':'5', 'type': 'text'}"/>
</customData>
<Text text="{i18n>statusName}"/>
</Column>
</columns>
<items>
<ColumnListItem type="Navigation" press=".onPress">
<cells>
<Text text="{Markt/Name}"/>
<Text text="{Status/Name}"/>
</cells>
</ColumnListItem>
</items>
</Table>
</smartTable:SmartTable>
Кажется, мне нужно добавить обработчик событий для SmartFilterBar
, чтобы также можно было отображать расширенный элемент!