我正在编写一个例程,该例程需要InventoryItem DAC中的几个字段,并且我注意到NoteID字段上的所有属性。我知道[PXNote]属性包含note字段和方法的所有属性,但是[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
答案 0 :(得分:1)
PXSearchableAttribute
用于在Acumatica的全文实体索引中包括记录的指定字段。它允许您在左上角的搜索框(现代UI)中搜索字段值。