cancel
Showing results for 
Search instead for 
Did you mean: 

calling WDDOINIT

Former Member
0 Kudos

Hi,

I got a simple question.

How to call WDDOINIT inside a method/action.

Normally to call a method we use wd_this->methoname( ).

But in WDDOINIT how do we call?

Thanks,

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

No you can not call WDDOINIT method explicitly.It gets automatically called. If you want to check order of execution , put some statements in this method and debug.

Reward if Useful.

Former Member
0 Kudos

It's a kind of hook method & it's execution sequence is first than the other customized methods. And calling it once again in other method seems to useless...

Former Member
0 Kudos

Hi Suba,

WDDOINIT is a predefined hook method and is called automatically by the webdynpro framework.

It is not meant to be called by an application developer. If some part of the code in this method is to be used somewhere else, create another method to incorporate that reusable code and call that method wherever required.

Regards,

Chitrali

Former Member
0 Kudos

Hi,

As it is the hook method you cannot call again

Sm1tje
Active Contributor
0 Kudos

This is a hook method which is called automatically. Why would you want to call it again from within another method? Better is to create a method within WDDOINIT which you can call from another method.

Don't think it is advisable to call WDDOINIT from anywhere else in your WD application / component.