Popup message trigger before an action is executed
I have created an action that triggers after save on the order in CRM. The action is basically terminating other linked orders to the current order. Before the action gets triggered i am trying to raise a popup message asking whether the user wants to go ahead with it. The code for this popup is written on the eh_onsave event handler of the order. Now when i try saving the order, the code going past the popup->open() method but does not immediately raise the popup. Infact the execution of the action takes place before the popup is open.
I am interested if the user clicks the yes button on the popup then only i want the control to move forward. Any advise for this scenario.
i am sorry if this a repeated question, i tried searching for it but couldnt find anything on it.