我在一个片段中有一个sapui5智能表,该片段在对话框中用于在弹出窗口中显示表格。 我已将所有必需的参数提供给smarttable和smart过滤器。但是,当我单击过滤器上的“执行”按钮时,它什么也没做。 (甚至没有请求在呼叫)
但是,当我在过滤器字段中键入一些文本时,会显示过滤器建议。 分页和数据显示也可以正常工作。
不知道原因。你有什么主意吗?
来源
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:smartFilterBar="sap.ui.comp.smartfilterbar"
xmlns:smartTable="sap.ui.comp.smarttable" xmlns:smartField="sap.ui.comp.smartfield" xmlns:unified="sap.ui.unified"
xmlns:app="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1">
<smartFilterBar:SmartFilterBar id="actionItemHistoryFilterBar" entitySet="VTicketPOActionItemHistory"
persistencyKey="actionItemHistoryFilterBar_Persis">
<smartFilterBar:controlConfiguration>
<smartFilterBar:ControlConfiguration key="TICKET_ID" index="0" visibleInAdvancedArea="true" preventInitialDataFetchInValueHelpDialog="false"
label="{@i18n>poActionItemHistoryTicketId}"></smartFilterBar:ControlConfiguration>
<smartFilterBar:ControlConfiguration key="PO_NUMBER" index="1" visibleInAdvancedArea="true" preventInitialDataFetchInValueHelpDialog="false"
label="{@i18n>poActionItemHistoryPONumber}"></smartFilterBar:ControlConfiguration>
<smartFilterBar:ControlConfiguration key="ACTION_ITEM" index="2" visibleInAdvancedArea="true"
preventInitialDataFetchInValueHelpDialog="false" label="{@i18n>poActionItemHistoryActionItem}"></smartFilterBar:ControlConfiguration>
<smartFilterBar:ControlConfiguration key="DUE_DATE" index="3" visibleInAdvancedArea="true" preventInitialDataFetchInValueHelpDialog="false"
controlType="date" filterType="interval" label="{@i18n>poActionItemHistoryDueDate}"></smartFilterBar:ControlConfiguration>
<smartFilterBar:ControlConfiguration key="ACTUAL_COMPLETION_DATE" index="3" visibleInAdvancedArea="true"
preventInitialDataFetchInValueHelpDialog="false" controlType="date" filterType="interval"
label="{@i18n>poActionItemHistoryActualCompletionDate}"></smartFilterBar:ControlConfiguration>
</smartFilterBar:controlConfiguration>
</smartFilterBar:SmartFilterBar>
<smartTable:SmartTable id="actionItemHistoryTable" entitySet="VTicketPOActionItemHistory" smartFilterId="actionItemHistoryFilterBar"
useExportToExcel="false" useVariantManagement="false" useTablePersonalisation="true" tableType="ResponsiveTable"
header="{i18n>poActionItemHistory}" showRowCount="true" persistencyKey="actionItemHistoryST_persis" enableAutoBinding="false"
demandPopin="true" class="sapUiResponsiveContentPadding"
requestAtLeastFields="PO_NUMBER,TICKET_ID,ACTION_ITEM_ID,DUE_DATE,COMMENT,ACTUAL_COMPLETION_DATE,ACTION_ITEM">
<Table id="articlecoretable" growing="true" growingThreshold="10" mode="MultiSelect" sticky="ColumnHeaders">
<!--sticky="ColumnHeaders"-->
<columns>
<Column id="TICKET_ID" hAlign="Begin">
<customData>
<core:CustomData key="p13nData" value='\{"columnKey": "TICKET_ID", "columnIndex":"0", "leadingProperty": "TICKET_ID"}'/>
</customData>
<Text text="{@i18n>poActionItemHistoryTicketId}"/>
</Column>
<Column id="DUE_DATE" hAlign="Begin">
<customData>
<core:CustomData key="p13nData" value='\{"columnKey": "DUE_DATE", "columnIndex":"3", "leadingProperty": "DUE_DATE"}'/>
</customData>
<Text text="{@i18n>poActionItemHistoryDueDate}"/>
</Column>
<Column id="ACTUAL_COMPLETION_DATE" hAlign="Begin">
<customData>
<core:CustomData key="p13nData"
value='\{"columnKey": "ACTUAL_COMPLETION_DATE", "columnIndex":"4", "leadingProperty": "ACTUAL_COMPLETION_DATE"}'/>
</customData>
<Text text="{@i18n>poActionItemHistoryActualCompletionDate}"/>
</Column>
<Column id="STATUS" hAlign="Begin">
<customData>
<core:CustomData key="p13nData" value='\{"columnKey": "STATUS", "columnIndex":"5", "leadingProperty": "STATUS"}'/>
</customData>
<Text text="{@i18n>poActionItemHistoryStatus}"/>
</Column>
</columns>
<items>
<ColumnListItem type="Active">
<cells>
<Text text="{parts: [{path: 'TICKET_ID'}],formatter: '.formatNumericString'}"/>
<Text text="{parts: [{path: 'DUE_DATE'}],formatter: '.formatter.formatDatetoDisplay'}"/>
<Text text="{parts: [{path: 'ACTUAL_COMPLETION_DATE'}],formatter: '.formatter.formatDatetoDisplay'}"/>
<core:Icon src="sap-icon://alert" class="iconClass" tooltip="{i18n>ammendment_tooltip}"></core:Icon>
</cells>
</ColumnListItem>
</items>
</Table>
</smartTable:SmartTable>
</core:FragmentDefinition>