Solved

How to rename data fields on a screen


Userlevel 1

Customization beginner here. 
How do I rename a data field on a screen? Looks like some changes were made from previous versions where this was done. In the example below, I simply want to rename this filed from the screen editor.

 

icon

Best answer by Gabriel Michaud 7 April 2021, 15:37

@jlowry40 by rename, you mean change “Total Amount” to something else? There are two possible approaches:

Approach 1: Customization

This is the track you’re in right now - the caption/column names are derived from the attributes of the field; in this case the field is APInvoice.OrigDocAmnt. This can be overridden a few different ways:

  • Via a graph-extension (using the _CacheAttached technique) -- this will apply to the Prepare Payments Page Only. 
  • By adding a DAC extension, and overriding the attributes there. 
  • From the Data Access section -- this ultimately generates a DAC extension for you, it just has a nice UI :grinning:  

Was this renamed/changed by someone,? I would suggest checking in the Code section of the customization project for anything that appear to alter this -- the original name I see on my side is “Amount”

 

 

Approach 2: Translation

By using the same tools available to translate the application in another language, you can make alterations to the English labels and messages. Go to Translation Dictionaries (SM200540), pick english and search the label or message you want to translate:

 

View original

6 replies

Userlevel 5
Badge +3

@jlowry40 by rename, you mean change “Total Amount” to something else? There are two possible approaches:

Approach 1: Customization

This is the track you’re in right now - the caption/column names are derived from the attributes of the field; in this case the field is APInvoice.OrigDocAmnt. This can be overridden a few different ways:

  • Via a graph-extension (using the _CacheAttached technique) -- this will apply to the Prepare Payments Page Only. 
  • By adding a DAC extension, and overriding the attributes there. 
  • From the Data Access section -- this ultimately generates a DAC extension for you, it just has a nice UI :grinning:  

Was this renamed/changed by someone,? I would suggest checking in the Code section of the customization project for anything that appear to alter this -- the original name I see on my side is “Amount”

 

 

Approach 2: Translation

By using the same tools available to translate the application in another language, you can make alterations to the English labels and messages. Go to Translation Dictionaries (SM200540), pick english and search the label or message you want to translate:

 

Userlevel 1

@Gabriel Michaud

I added the data field to the column to reflect the Original Document Amount (APInvoice__OrigDocAmtWithRetainageTotal). The default label is Total Amount in my system. 

I assume that this is what you meant by the Data Access Section? And just change the label here?

 

Userlevel 5
Badge +3

That’s what the Data Access section look like:

 

When you click add, you’ll be prompted to select the class name. Since APInvoice inherits from APRegister, it will automatically revert back to APRegister (this is fine). Click Add Field->Change Attributes of Base Field and pick the OrigDocAmtWithRetainageTotal field.

You simply need to add the following attribute and enter the display name you want:

[PXUIField(DisplayName = ”Total with Retainage", FieldClass = nameof(FeaturesSet.Retainage))]

 

It will apply to every screen where this field is used. Here’s the result on my system:

 

Userlevel 1

@Gabriel Michaud

This is great!! Thanks!

Userlevel 5
Badge

There is an article (a bit dated) with some additional screen shots here: https://www.acumatica.com/blog/technical-tuesday-changing-field-labels-in-acumatica/

Userlevel 5
Badge +3

@Doug Johnson thanks… I remembered reading this a while back and actually searched online before writing my reply, if I had found your post I would have linked to it directly :)

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2020  Acumatica, Inc. All rights reserved