I’m adding a Vendor ID selector to the Stock Items screen. I’m trying to use an existing VendorActive attribute so I don’t have to create the PXSelector from scratch.
In project editor, the custom field shows a TextEdit, not Selector. I tried editing the ASPX to make the field a PXSelector, but I get this error when I try to use the field:

This is my DAC field. I used the same “technique” as in the Acumatica training course, but does not work.
public sealed class CBInventoryItemExt : PXCacheExtension<PX.Objects.IN.InventoryItem>
{
public static bool IsActive() => true;
#region UsrItemVendor
[VendorActive(DisplayName = "Item Vendor", DescriptionField = typeof(Vendor.acctName))]
public int? UsrItemVendor { get; set; }
public abstract class usrItemVendor : PX.Data.BQL.BqlInt.Field<usrItemVendor> { }
#endregion
}
Nothing is ever easy for me.
