How do I rename the Column Name on Acumatica Custo

2019-08-16 07:55发布

How do I rename the Column Name on Acumatica Customers screen?

I tried the below method on other screens, but for the customers page, it does not seem to be working:

PXUIFieldAttribute.SetDisplayName<PX.Objects.CR.CRRelation.BAccount__AcctName>(this.Transactions.Cache, "Customer Name");

2条回答
Viruses.
2楼-- · 2019-08-16 08:22

Not sure which Customers screen are you referring but AR.30.30.00 does not have view called Transactions out of the box. Also, SetDisplayName in your case should take 3 parameters -

PXUIFieldAttribute.SetDisplayName(PXCahce, fieldname, displayName)

And changing display names for grid columns are best handled at DAC attribute level. At runtime, there is lesser know (read undocumented) repaintcolumns property that forces redraw of column headers which might work.

best of luck!

查看更多
Fickle 薄情
3楼-- · 2019-08-16 08:35

Try this

PXUIFieldAttribute.SetDisplayName<DAC.field>(this.Transactions.Cache, null, "Field Name")

I don't have VS here so I don't remember the syntax correctly, hope it'll help

查看更多
登录 后发表回答