Skip to main content
Question

Dynamically Change Screen Header Label

  • September 29, 2022
  • 3 replies
  • 192 views

Forum|alt.badge.img+1

I’m trying to modify the screen header label on a screen, specifically the project ID field on the Projects screen, to show the separator dash”-” in between segments to match how the project ID field looks on the screen in the “Project ID” field. Currently, if the Project ID has segmented keys to separate the values (00001293rt-00010), the header value will only display as 00001293rt00010 since that’s the way the field is stored in the database. I am hoping to have the screen header label match what you see in the project ID field below it.

I’ve searched multiple topics on this and it seems like the best way to handle would be with javascript, but none of the examples I’ve seen have worked this situation, since it needs to formatted from data on the current record. Some of the screens have access to this “usrCaption” element that can be modified in C# code, but since this screen uses a master page, it’s not easily accessible.

I was curious if anyone has done anything similar to this before, and if so had any pointers on the best way to handle.

Thanks!

 

 

3 replies

darylbowman
Captain II
Forum|alt.badge.img+13

I believe by adding (or removing) the [PXFieldDescription] C# attribute (via the CacheAttached event handler) to the required DAC fields, you could modify this.

 

Edit:

Sorry, this doesn’t actually answer the original question at all. If anyone arrives here wondering how to change which fields are combined to set the page header, I think this is how.


hdussa
Jr Varsity I
Forum|alt.badge.img
  • Jr Varsity I
  • 99 replies
  • February 26, 2025

Hello ​@mbridges00 ,

I am with you on the analysis. The SPAN element with id usrCaption handles the screen header label. It is possible to modify using JavaScript functions which Acumatica does not recommend. I would first check with Acumatica by raising a dev support case if there is a best alternative such as masking the field value when reading from the DB.

Hope this helps!


Forum|alt.badge.img+8
  • Captain II
  • 362 replies
  • February 26, 2025

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings