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

老子叫甜甜 提交于 2019-12-12 04:13:19

问题


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");

回答1:


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!




回答2:


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



来源:https://stackoverflow.com/questions/25370168/how-do-i-rename-the-column-name-on-acumatica-customers-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!