cancel
Showing results for 
Search instead for 
Did you mean: 

How to make the wdDoIniiit() function executived twice in the view of WebDy

Former Member
0 Kudos

Hi Guyes, How can i make the wdDoIniiit() function executived twice in the view of WebDynpro? Thank you

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member485701
Active Participant
0 Kudos

Hi,

you can achieve this is one way.

Procedure for calling wdDoInit more than once:

(a)1st go to the properties of the view and select the radio button to "when visible".

(b)If you are currently on your current view then you navigate to some other view,

and again come back to the 1st view.

Regards,

Praveen

Former Member
0 Kudos

Hi,

WDDOINIT is called automatically when a controller is initialized for the first time. As this methods are called automatically by the controller you can't call them again. If you want to perform some task same as in WDDoInit then you can write that within a user defined method and call the same whenever and wherever you want.

Warm Regards,

Murtuza

Former Member
0 Kudos

hi lei qin,

I don't think so it can be done explicitly. What exactly is ur requirement?? if u can elaborate more,may be we can give some other option.

regards

Sumit

Former Member
0 Kudos

Hi

WdDoInit() :- This is called only once when the View is loaded freshly.

WdDoModifyView:- Called every time an action is performed on the View.

It is called by webdynnpro runtime environment for modification of the view layout.

For all the views,this takes place at a time immediately before the closing response renders.

check for

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/86/16e13d82fcfb34e10000000a114084/frameset.htm">Modifyview</a>

also you can know about <a href="http://help.sap.com/saphelp_nw04/helpdata/en/86/7fcf3d4f902d10e10000000a114084/frameset.htm">Supply function</a>

Regards

Abhijith YS