Skip to main content
Answer

Adding Events to UserDefinedField

  • May 13, 2025
  • 2 replies
  • 53 views

I have a need checkbox(UsrFieldName) to the Request Screen RQ301000. I need to add FieldUpdated Event to it

RQRequestEntry is the main DAC

 

 public class RQRequestEntry_Extension : PXGraphExtension<PX.Objects.RQ.RQRequestEntry>
   {
   #region Event Handlers
   protected void _(Events.FieldUpdated<RQRequest> e) -----→ How can I update this Line
   {
     
   }
   #endregion
 }

Best answer by Naveen Boga

@anupusefulbi  You work with the below syntaxes.

 

 protected virtual void _(Events.FieldUpdated<RQRequest, RQRequestExt.usrFieldName> e)
{
RQRequest row = e.Row as RQRequest;
if (row != null)
{
}
}


OR



protected virtual void RQRequest_UsrFieldName_FieldUpdated(PXCache cache, PXFieldUpdatedEventArgs e)
{
RQRequest row = e.Row as RQRequest;
if (row != null)
{
}
}

 

2 replies

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • May 13, 2025

@anupusefulbi is your field a user defined field (that users can add via configuration) or a custom field that you add via a customization package?

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • May 13, 2025

@anupusefulbi  You work with the below syntaxes.

 

 protected virtual void _(Events.FieldUpdated<RQRequest, RQRequestExt.usrFieldName> e)
{
RQRequest row = e.Row as RQRequest;
if (row != null)
{
}
}


OR



protected virtual void RQRequest_UsrFieldName_FieldUpdated(PXCache cache, PXFieldUpdatedEventArgs e)
{
RQRequest row = e.Row as RQRequest;
if (row != null)
{
}
}