Skip to main content
Solved

How to ovveride add & add and close buttons


Forum|alt.badge.img

How can I ovveride this buttons on Transfer screen?
 

 

Best answer by Yuriy Zaletskyy

You can override Approve button using next piece of code:

public class RQRequestEntryExt : PXGraphExtension<RQRequestEntry>
{
public override void Initialize()
{
    base.Initialize();
    Base.FieldVerifying.AddHandler<RQRequest.approved>((cache, args) =>
    {
        //Add your own logic here
    });
}
}

There is another way how you how you can update ability to press Approve button from workflow extension in customization projects
 

These conditions you can create here

In this way you can change the visibility condition for the Approve button. If you need to add some new logic when Approve button is pressed use first approach

View original
Did this topic help you find an answer to your question?

Naveen Boga
Captain II
Forum|alt.badge.img+19

@VadymBoichenko96  Can you please let us know what is the requirement? 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • July 2, 2024

Hi @VadymBoichenko96 were you able to find a solution? Thank you!


Yuriy Zaletskyy
Jr Varsity I
Forum|alt.badge.img+3

You can override Approve button using next piece of code:

public class RQRequestEntryExt : PXGraphExtension<RQRequestEntry>
{
public override void Initialize()
{
    base.Initialize();
    Base.FieldVerifying.AddHandler<RQRequest.approved>((cache, args) =>
    {
        //Add your own logic here
    });
}
}

There is another way how you how you can update ability to press Approve button from workflow extension in customization projects
 

These conditions you can create here

In this way you can change the visibility condition for the Approve button. If you need to add some new logic when Approve button is pressed use first approach


Reply


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