将智能表放在对话框弹出窗口中时,SAPUI5智能表过滤器不起作用

时间:2018-09-18 06:16:23

标签: sapui5

我在一个片段中有一个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&gt;poActionItemHistoryTicketId}"></smartFilterBar:ControlConfiguration>
            <smartFilterBar:ControlConfiguration key="PO_NUMBER" index="1" visibleInAdvancedArea="true" preventInitialDataFetchInValueHelpDialog="false"
                label="{@i18n&gt;poActionItemHistoryPONumber}"></smartFilterBar:ControlConfiguration>
            <smartFilterBar:ControlConfiguration key="ACTION_ITEM" index="2" visibleInAdvancedArea="true"
                preventInitialDataFetchInValueHelpDialog="false" label="{@i18n&gt;poActionItemHistoryActionItem}"></smartFilterBar:ControlConfiguration>
            <smartFilterBar:ControlConfiguration key="DUE_DATE" index="3" visibleInAdvancedArea="true" preventInitialDataFetchInValueHelpDialog="false"
                controlType="date" filterType="interval" label="{@i18n&gt;poActionItemHistoryDueDate}"></smartFilterBar:ControlConfiguration>
            <smartFilterBar:ControlConfiguration key="ACTUAL_COMPLETION_DATE" index="3" visibleInAdvancedArea="true"
                preventInitialDataFetchInValueHelpDialog="false" controlType="date" filterType="interval"
                label="{@i18n&gt;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&gt;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&gt;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&gt;poActionItemHistoryActualCompletionDate}"/>
                </Column>
                <Column id="STATUS" hAlign="Begin">
                    <customData>
                        <core:CustomData key="p13nData" value='\{"columnKey": "STATUS", "columnIndex":"5", "leadingProperty": "STATUS"}'/>
                    </customData>
                    <Text text="{@i18n&gt;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>

0 个答案:

没有答案