【问题标题】:How can I add searchable InventoryID (User Defined Field) in the Cases module of Acumatica?如何在 Acumatica 的案例模块中添加可搜索的 InventoryID(用户定义字段)?
【发布时间】:2019-03-25 04:04:18
【问题描述】:

如何在 Acumatica 的案例模块中添加可搜索的 inventoryID 字段?我已经添加了一个自定义字段,但我可以让它可搜索吗? 是否可以从 inventoryItem 表中搜索此 InventoryID 用户定义字段?截图如下:

【问题讨论】:

    标签: customization acumatica


    【解决方案1】:

    如果您希望它成为所有库存项目的选择器,您可以将 [StockItem] 属性放在该字段上。如果您想使用不同的查询,您可以使用常规的 PXSelector,例如

    [PXSelector(typeof(Search<InventoryItem.inventoryID, Where<...

    【讨论】:

    • 谢谢 Rochelle,如何在字段上添加 StockItem 属性?
    • 在 DAC 中,在您的 InventoryID 字段上方。这是一个示例:#region InventoryID public abstract class inventoryID : PX.Data.BQL.BqlInt.Field { } protected Int32? _库存ID; [StockItem(Visibility = PXUIVisibility.SelectorVisible)] [PXDefault] 公共虚拟 Int32? InventoryID { get { return this._InventoryID; } 设置 { this._InventoryID = 值; } } #endregion
    • 很抱歉,它并没有让我在评论中粘贴代码。但是 [StockItem] 属性高于 DAC 中的自定义字段。您还可以查看 INLocation.cs 作为另一个示例。
    猜你喜欢
    • 2020-06-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多