0
votes

In the Create Purchase Order Screen, I have added four fields, Product Manager, Product Manager Name, a User Defined field (Buyer ID) and the Buyer Name in the grid to be displayed. These fields come from the Stock Item Screen).

I want to change the Heading column Employee Name to Product Manager Name in the Grid shown.

PXUIFieldAttribute.SetDisplayName(cache, "_____", "Product Manager Name");

How exactly it has to be done. Where do I put the code ??

1

1 Answers

2
votes

I would add the SetDisplayName call to a graph extension on that graph in the override of initialize. Here is a working example below using existing fields:

public class POCreateExtension : PXGraphExtension<POCreate>
{
    public override void Initialize()
    {
        base.Initialize();

        PXUIFieldAttribute.SetDisplayName<POFixedDemand.vendorID>(Base.Caches[typeof(POFixedDemand)], "kung fu panda");
    }
}