Skip to Content
avatar image
Former Member

what is Domodify method?

Hi Experts,

Can you please explain domodify method?how it is differ from other method?

Please give me a detail note on this?

Thanks in Advance,

Dharani

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 29, 2008 at 11:57 AM

    Hi,

    All view controllers implement the method wdDoModifyView. This is the only location where application code may directly access the UI elements! wdDoModifyView is called by the Web Dynpro runtime environment for modification of the view

    layout.

    //@begin

    public static void wdDoModifyView (

    IPrivateDynamicView wdThis,

    IPrivateDynamicView.IContextNode wdContext,

    IWDView view, boolean firstTime)

    {

    u2026

    }

    //@end

    firstTime of the type boolean: This is true only

    if wdDoModifyView wis called

    for the first time during the life cycle of the corresponding view.

    view: Reference to the generic view controller API, suitably typed to offer

    special view functionality like creating UI elements.

    wdThis: Reference to the IPrivate interface of the view controller . wdThis

    allows triggering outbound plugs and events and access to action objects as well

    as controllers used.

    wdContext: Reference to the root context node of the view controller (for the

    current context).

    Regards,

    P.Manivannan.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 29, 2008 at 12:35 PM

    Hi Dharani,

    DoModify Method is one of the Hook methods, the other methods are DoInit, DoExit.

    In this method we can write our code which is executed at run time, difference between doInit and Domodify is DoInit will execute at starting of the Application only i.e for once only it is executed.

    you can write your code for Dynamic UI generation, for modifying the values of your attributes and for parameter mapping, key mapping, creating nodes and node binding.

    Regards,

    Sharma.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 29, 2008 at 12:06 PM

    Hi

    wdDOModifyView()

    this method will be called all the times before rendering the view. This method used for creating / modifying the UI Elements dynamically.

    Check nice Bertram`s article https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/yet%20another%20evs%20valuehelp%20-%20showing%20display%20texts%20for%20keys.article

    Thanks,

    Tulasi Palnati

    Edited by: Tulasi Palnati on Jul 29, 2008 2:06 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 29, 2008 at 12:27 PM

    wdDoModifyView()

    1) Static method can access UI elements directly.

    2) the 'firstTime' variable restricts statements to be executed at only one time (depends on Lifespan)

    3) mainly used for dynamic UI creation

    4) used for parameter mapping, key mapping too.

    5) this method is called on every server round-trip.

    hope you understand,

    nikhil

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 30, 2008 at 09:15 AM

    in do modify method in view is the place where you can dynamically generate a UI element. And also its static method.

    Add comment
    10|10000 characters needed characters exceeded