Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Oct 12, 2007 at 04:01 AM

    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

    Modifyviewhttp://help.sap.com/saphelp_nw04/helpdata/en/86/16e13d82fcfb34e10000000a114084/frameset.htm">Modifyview>

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

    Regards

    Abhijith YS

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 12, 2007 at 05:09 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 12, 2007 at 08:11 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 12, 2007 at 09:08 AM

    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

    Add comment
    10|10000 characters needed characters exceeded