on 09-28-2013 8:10 PM
These methods are called as hook methods. you can find more details at http://wiki.scn.sap.com/wiki/display/WDABAP/Hooks+Methods+in+Webdynpro+for+ABAP
and at http://help.sap.com/erp2005_ehp_04/helpdata/EN/45/c87f413e70010de10000000a1550b0/frameset.htm
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
WDDOINT - This method would be called only once , i,e during the initialization of the view.
where as the, in the entire lifecycle.
WDDOMODIFYVIEW
method would rendered many times,(called when ever the view is modified).
If the UI elements has to be added dynamically it can be done only in WDDOMODIFYVIEW,
If an UI element has to be removed / added / modified it can be done only in WDDOMODIFYVIEW
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Shelwin,
Webdynpro Development environment/Frame work provideds Object Oriented approach to develop any objects. In Object oriented environment you need to write code on Methods.
As we have different controllers in webdynpro development Component controller,View controller, Interface controller .etc.,.
Each control will work for individual task, to perform those task the same controllers should have code part . To write the code for corresponding/Under those controllers Webdynpro Frame work providing default methods. These methods are called as "Hook Methods".
WDDO_INIT( ) & WDDO_EXIT( ) methods are common for all controllers .
WDDO_INIT() method is to write code for initialize .
WDDOMODIFYVIEW() method's code will execute whenever you make changes in UI elements on VIEW.
Hi Shelwin,
WDDOINIT - is used for initializing the values (Initializing)
WDDOMODIFYVIEW - Instead of dragging from layout, used for dynamically creating UI buttons...
Regards,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
WDDOINIT - Like an initialization event i.e when the view get initialize first time it will get trigger.
WDDOMODIFY - Like an At selection screen output event. i.e When the view get any action it will Trigger and also If you pass the parameter First_time = 'X'. then it will work like WDDOINIT.
I hope you understand.
Regards,
John.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
WDDOINIT Method :
This is the initialization method of the controller. It always runs automatically the first time the controller is called. U can write logic here which will be trigged while loading view for first time.
WDDOMODIFYVIEW Method:
Method for modifying the view before rendering.
This is the only method in which dynamically modifying the UI controls is permitted. The reference to the view and the information whether this view is displayed for the first time are passed to the method.
FIRST_TIME is an boolean attribute available in WDDOMODIFYVIEW method. Its value is true only when the view is loaded for the first time.
Hope this gives you basic idea.
Best Regards,
Abirami
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As Hitesh and Chandra already shared same link two times.
These all are called HOOKS method.
Just search on google "Hooks method in ABAP Web dynpro." You will got no. of solution.
difference between WDDOINIT and WDDOMODIFYVIEW?
Main Difference is WDDOINIT method of view will be called only once when the view gets load in application and visible to you.WDDOINIT is similar to a constructor.
But WDDOMODIFYVIEW will be called every time if you perform some action on view. anything pressing some button, changing some checkbox.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.