Search code examples
acumatica

Customize with attribute field


With the function PXCustomizeSelectorColumns, we can add usr field, I would like add attribute field ? But impossible to use this field, I have this error :

The type name 'COLOR_Attributes' does not exist in the type 'InventoryItem'

[PXCustomizeSelectorColumns(
typeof(PX.Objects.IN.InventoryItem.inventoryCD),
typeof(PX.Objects.IN.InventoryItem.descr),
typeof(PX.Objects.IN.InventoryItem.COLOR_Attributes),
typeof(PX.Objects.IN.InventoryItemExt.usrCategorie))]

Xavier


Solution

  • This is because attribute field values do not exist within the standard tables. All attributes are stored within a table called 'CSAnswers' see this thread