带有快速搜索功能的 Acumatica 过滤 PXSelector [英] Acumatica Filtering PXSelector witth quick search

查看:14
本文介绍了带有快速搜索功能的 Acumatica 过滤 PXSelector的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个像这样的自定义 dac 和 pxselector:

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.

推荐答案

您可以使用 GridProperties 元素的 FastFilterFields 属性来实现这一点.您需要在 FastFilterFields 中添加搜索功能所需的所有字段:

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>

如果选择器在网格中而不是在表单中,请使用 RowTemplate:

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>

这篇关于带有快速搜索功能的 Acumatica 过滤 PXSelector的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆