Skip to main content
Question

How can I rename an existing DAC field (Which doesn't has PXUIField Attribute) in a DAC Extension.

  • July 18, 2022
  • 9 replies
  • 235 views

Forum|alt.badge.img+1

Hi All, Hope you are doing well.

How can I rename an existing DAC Field in DACExtension class.

For Example,

 I Need to rename the LineCntrAttribute field [of AMClockItem - DAC] to LineCntr [ in DAC Extension].

Could you please provide some suggestions or code snippet?

 

 

Thanks,

Moulali Shaik.

9 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • July 18, 2022

Hi @MoulaliShaik79  Have you tried with the Workflow automation steps in the customization project?

 


Forum|alt.badge.img+1

Hi @Naveen Boga,

  I didn’t have knowledge of the Workflow Automation topic/ concept.

 

 

 

Thanks,

Moulali Shaik.


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • July 18, 2022

Hi @MoulaliShaik79 

Please go through the answer given by Naveen in this post

Renaming a Field | Community (acumatica.com)


Forum|alt.badge.img+1

Hi @Naveen Boga, @jinin,

 Here, I want to change the Table column name also. So If I change the table column name then its dependent DAC/DACs field will get affected/unable to recognize the new field  (I presume). 

Will the Workflow Automation handle it? or How to achieve this functionality?.

Note: Existing DAC Field doesn’t have PXUIField Attribute.

 

Thanks,

Moulali Shaik.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • July 19, 2022

Hi @MoulaliShaik79  We can change the Table column through the workflow automation steps.

This activity will change only the Disiplay Name, it will not impact anything on the DAC level.

 

Can you please let me know more details, that you are trying to modify. In the above I can see only DAC and field name, Can you please provide all details together here.

  • Screen ID/Screen Name
  • View
  • DAC
  • Field

 


Forum|alt.badge.img+1

Hi @Naveen Boga,

I don’t want to change the Display Name why because the renaming field will not have the PXUIField Attribute.

  • Screen ID/Screen Name  = Clock Entry
  • View = header
  • DAC = AMClockItem
  • Field = lineCntrAttribute
  • (this need to be like lineCntr in both places DAC field and also in Table column)

 

 

 

Thanks,

Moulali Shaik.

 

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • July 19, 2022

@MoulaliShaik79  We can only modify the Display Names through workflow automation steps but not the Field Name.

If you change the field, it will impact everywhere where we have used that field and it is HIGHLY NOT RECOMMENDED.

 

If required, you can introduce new customization field and implement the same logic as  lineCntrAttribute


Forum|alt.badge.img+1

Hi @Naveen Boga,

  I am a bit confused about the new customization field, if possible could you please provide some code snippets or reference links to achieve this?

 

 

Thanks,

Moulali Shaik.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • July 28, 2022

Hi @MoulaliShaik79 - were you able to find a solution for your issue? Thank you!