I would like to add a custom detail page button to the order page which is only executing Apex. Without displaying a new window.
For the moment, my custom button is linked to a visualforce page which is calling the order standard controller and my custom extension. After getting the order record in the constructor of my custom extension, a public method is called by the visual force page via a command button. Finally, I make a redirection to the previous order page.
My goal is to be able to get the order record in the constructor of a class, make an update on it, then redirect directly to the order page without displaying any new window.
Thanks for your help.