June B
June B

Reputation: 142

How can I get a prepopulated inventory field to show only the InventoryID and not the description (Acumatica)

We have a custom graph that was built for us by Acumatica; it uses a PXProjection called by the primary graph's PXSelectJoin to select data and populate the fields.

A couple of fields are inventory ID fields:

    #region KitComponentID
    public abstract class kitComponentID : IBqlField { }
    [StockItem(DisplayName = "Kit Component ID", IsKey = true, BqlField = typeof(INKitSpecStkDet.compInventoryID))]
    public virtual int? KitComponentID { get; set; }
    #endregion

    #region KitInventoryID
    public abstract class kitInventoryID : IBqlField { }
    [SOLineInventoryItem(DisplayName = "Kit ID", BqlField = typeof(SOLine.inventoryID))]
    public virtual int? KitInventoryID { get; set; }
    #endregion

These fields are not user editable, only for display. We would like to have them display only the InventoryCD, not the CD and description.

Is there a different way I can define my fields so that they are still automatically populated but display only the InventoryCD?

Upvotes: 2

Views: 147

Answers (1)

Kyle S
Kyle S

Reputation: 134

Under the screen editor, the field should have a drop-down of DisplayMode. By default, I believe it's Hint (which is Key + Description), Value (which is just key), and Text (which is Description.)

If you change the DisplayMode to Value, it should give you what you want.

Upvotes: 2

Related Questions