acumatica - 注意 InventoryItem DAC 中的属性
问题描述
我正在编写一个需要 InventoryItem DAC 中的几个字段的例程,我注意到 NoteID 字段上的所有属性。我知道 [PXNote] 属性包含注释字段和方法的所有属性,但是 [PXSearchable] 属性有什么作用呢?
#region NoteID
public abstract class noteID : PX.Data.IBqlField { }
protected Guid? _NoteID;
[PXSearchable(SearchCategory.IN, "{0}: {1}",
new Type[] { typeof(InventoryItem.itemType), typeof(InventoryItem.inventoryCD) },
new Type[] { typeof(InventoryItem.descr) },
NumberFields = new Type[] { typeof(InventoryItem.inventoryCD) },
Line1Format = "{0}{1}{2}",
Line1Fields = new Type[] { typeof(INItemClass.itemClassCD),
typeof(INItemClass.descr),
typeof(InventoryItem.baseUnit) },
Line2Format = "{0}",
Line2Fields = new Type[] { typeof(InventoryItem.descr) },
WhereConstraint = typeof(Where<Current<InventoryItem.itemStatus>,
NotEqual<InventoryItemStatus.unknown>>)
)]
[PXNote]
public virtual Guid? NoteID { get; set; }
#endregion
解决方案
PXSearchableAttribute
用于在 Acumatica 的全文实体索引中包含记录的指定字段。它允许您在左上角的搜索框(现代 UI)中搜索该字段值。
推荐阅读
- microsoft-graph-api - 向多租户应用添加权限后更新范围
- java - How do I separate what value is stored in a single byte (of a long)?
- python - Pandas:将日期时间 (%Y-%d-%m %H:%M) 转换为 (%Y-%m-%d %H:%M)
- java - 使用 camunda 建模器进行 base64 编码/解码时出错
- html - firebase.database 不是函数错误 - html 页面
- linq2db - 在运行时为 linq2db 添加或删除列映射
- subtraction - Paperjs减去形状无法正常工作的路径
- mysql - 将 tfs 2017 中的容量规划捕获到 powerBI
- mongodb - 如何在mongodb模式中添加字符串数组
- python - 如何在python中创建一个带有键名的嵌套json?