Acumatica Filtering PXSelector witth quick search

末鹿安然 提交于 2021-02-10 08:52:16

问题


I have a custom dac and pxselector like this :

With quick search (red bordered search) I want to filter with every properties. For example with Waybill Type, Transportation Type, Status etc. But quick search works only for Reference Nbr.

Of course you can filter from columns but in business requirements I need to filter from quick search.


回答1:


You can use FastFilterFields property of the GridProperties element to achieve that. You need to add all the fields you need for the search function in FastFilterFields:

<px:PXSelector ID="SelectorID" runat="server" DataField="SelectorField">
    <GridProperties FastFilterFields="ReferenceNbr, WaybillType, TransportationType, Status, WaybillNumber, WaybillState" />
</px:PXSelector>

If the selector is in a grid instead of a form, use RowTemplate:

<px:PXGrid ID="gridID" runat="server" DataSourceID="ds">
    <Levels>
        <px:PXGridLevel DataMember="GridDataView">
            <RowTemplate>
                <px:PXSelector ID="edSelectorID" runat="server" DataField="SelectorField">
                    <GridProperties FastFilterFields="ReferenceNbr, WaybillType, TransportationType, Status, WaybillNumber, WaybillState" />            
                </px:PXSelector>    
            </RowTemplate>
            <Columns>
                <px:PXGridColumn DataField="SelectorField" />
            </Columns>
        </px:PXGridLevel>
    </Levels>
</px:PXGrid>


来源:https://stackoverflow.com/questions/47070260/acumatica-filtering-pxselector-witth-quick-search

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!