Skip to main content
Solved

How to ovveride add & add and close buttons

  • 21 May 2024
  • 3 replies
  • 48 views

How can I ovveride this buttons on Transfer screen?
 

 

3 replies

Userlevel 7
Badge +19

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

Userlevel 7
Badge

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

Userlevel 6
Badge +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