Solved

Change Displayname from underlying field


Userlevel 3
Badge

Hey

i would like to change a display name from a field within the attribute editor
but everytime i try to click on “Change Attributes” it shows i cant edit the attributes because the underlying field is a replacement. How can i edit it if this error message appears?
i am looking since hours and cant find a solution.

icon

Best answer by Naveen Boga 21 April 2021, 23:50

View original

11 replies

Userlevel 7
Badge +17

Hi, @jwestermann17 What filed you would like to change the display name? Can you please provide more details on this requirement?

Userlevel 3
Badge

Hello.

We would like to change the Display Name of a Field inside the EP305000 Screen.
In the Screen → Tab Details → Grid: Activities → Date_Time 

We made some changes to the screens to fit with the requirements from our customer. 
Since we added fields like “Break” and “End Time” we would like to change “Date_Time” to the DisplayName “Start” 

 

Userlevel 7
Badge +17

Hi, @jwestermann17 

Can you please confirm that you wanted to change the display name for the below-highlighted field?
 

Userlevel 3
Badge

Hi @Naveen B 

We are using the german version from Acumatica called Lexbizz, so it might not be at the same location.
I would like to change the Display Name of this field:
 

I get the same error trying to customize attributes in Acumatica, so i am sure its not a lexbizz problem. 

 

 

Greetings

Userlevel 7
Badge +17

Please find the cache mechanism technique to rename the Displayname field. Please find the example below.

 

public class CRActivityMaintEXT : PXGraphExtension<CRActivityMaint>
    {
        [PXMergeAttributes(Method = MergeMethod.Merge)] 
        [PXUIField(DisplayName = "Start")]
        protected virtual void CRActivity_StartDate_CacheAttached(PXCache cache)
        {
        }
    }

Userlevel 3
Badge

Where would i implement the change?
Can i click on Attributes and “Override on Screen-Level” and implement the code?

Userlevel 7
Badge +17

In the package, go to the code section, Click on the + icon, and select the “Graph Extension” and the required graph and add above just like below and then publish the package.

 

 

 

 

Userlevel 3
Badge

Thank you. But i believe “TimeCardMaint” is the right Extension, or?

I get the error that some ; are missing.
But whenever i add one after the lines (the last one) it tells me there must be a declared body marked abstract, extern or partial. 

Looks like this now: 

 

 

Userlevel 7
Badge +17

Since you are looking to this Time field, yes we need to work with TImeCardMaint.

Please use the below code to modify the Display Name as required

 [PXMergeAttributes(Method = MergeMethod.Merge)]
[PXDBDateAndTime(DisplayNameDate = " Date", DisplayNameTime = "Start", UseTimeZone = true)]
[PXUIField(DisplayName = "Date")]

protected virtual void EPTimecardDetail_Date_CacheAttached(PXCache cache)
{
}

 

 

 

Userlevel 3
Badge

Hey works perfect!
Where do i see the PXDB Name of fields that occur with this error? 
Do i have to look at the Datafield Name (f. E. Date_time) and can assume _ is a equivalent to “and” ? 

--

Now i just need to find out how to edit the combobox value of this field..
Normal way doesnt seem to work, so i guess it needs to be with code.
 

Userlevel 3
Badge

Hey, i thought before making a new topic i should ask here..

We would like to add user fields (UsrEz) for example with time mode, the time dropdown list and editable.
Works on the EP307000 Screen, but not on the EP305000 Screen. Field just wont accept that it should have time mode with input mask hh:mm and if we write something in it it only looks for the dropdown values. Any ideas?

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 — 2024  Acumatica, Inc. All rights reserved