Showing results for 
Search instead for 
Did you mean: 

Want to know about WDDOAFTERACTION method.

Former Member
0 Kudos

Hi ,

        I am trying to do some operation based on button click.

I am able to get which button is clicked in WDDOBEFOREACTION with following code,

   lo_api_controller = wd_this->wd_get_api( ).

   lo_action = lo_api_controller->get_current_action( ).

   IF lo_action IS BOUND.

     CASE lo_action->name.





      but the thing is how to perform an operation after that button click in WDDOAFTERACTION method.

any help will be greatly appreciated.

Thanks ...

Accepted Solutions (0)

Answers (3)

Answers (3)

Active Participant
0 Kudos

Hi mallikarjun,

WDDOBEFOREACTION( ) method will be called before the user action( Event handler ) is called.

This method can be used for validations or to set data for reference etc.

Eg: If you had clicked on SAVE button, first WDDOBEFOREACTION( ) will be called and then OnActionSAVE( ) will be called.

Hope you had understood the functionality of the method.

Thanks & Regards,

Sankar Gelivi.

Active Participant
0 Kudos



•          This method is called for all visible views at the time an action is executed.

•          Here functions can be placed that are carried out equally for all associated event handlers

After any action on view, if you want to trigger some thing then we can place our code in wddoafteraction.

for example: There is a submit button action in view. By taking an action of submit it will do some calculation and navigate the some other view. before navigation of that if you want to do validation then you can write here.

Rajesh K

Active Contributor
0 Kudos

Hi Mallikarjun,

The method wddoafteraction( ) is used to perform non-action specific operations before navigation.

You can get the current action details in that method by storing action into view attribute during wddobeforeaction( ) method ,but control reaches there after event handler of your action executed.

Whats your requirement?