Skip to main content
Answer

PXRestrict Change My display text

  • October 19, 2023
  • 1 reply
  • 59 views

Forum|alt.badge.img

    [PXDBInt]
    [PXRestrictor(typeof(Where<InventoryItem.itemType, Equal<INItemTypes.nonStockItem>>), "Non-Stock Only")]
    [PXSelector(typeof(Search<InventoryItem.inventoryID>),typeof(InventoryItem.inventoryCD),SubstituteKey = typeof(InventoryItem.inventoryCD),DescriptionField =typeof(InventoryItem.descr))]
    [PXUIField(DisplayName = "Item ID")]
    public virtual int? UsrItemID { get; set; }
    public abstract class usrItemID : PX.Data.BQL.BqlInt.Field<usrItemID> { }

I should show Item ID

Best answer by sweta68

Hi @kevinheng21 ,

I didn't see any issues in the code, and I have tested it in my local environment, where I was able to display the Item ID display name.
 

Regards,

Sweta

1 reply

Forum|alt.badge.img+9
  • Semi-Pro III
  • Answer
  • October 19, 2023

Hi @kevinheng21 ,

I didn't see any issues in the code, and I have tested it in my local environment, where I was able to display the Item ID display name.
 

Regards,

Sweta