cancel
Showing results for 
Search instead for 
Did you mean: 

what is Domodify method?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

nikhil_bose
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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%20an...

Thanks,

Tulasi Palnati

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