on 07-29-2008 12:48 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in do modify method in view is the place where you can dynamically generate a UI element. And also its static method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.