on 08-06-2008 2:18 AM
what is the use of context tab in windows .. in which scenario do we use it??
how can we make method or attribute available to other controllers.? wd abap
The context in window saves the nodes and attributes for controling the logic among its views. You can also save some information you need.
For other controllers, you can add the window controller into their used controller, then you can use the methods of the window.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1.Generally we write most of our code in Views and Compoent Controller, if some code needs to be written in window like in HANDLEDEFAULT, WDDOINIT or WDONOPEN where we want to set any context data which is declared in component controller we can map it to window controller and change it
If you closely observe, there is no context for Window in Web Dynpro Java.
2. go to properties tab of the view and add your window controller, then you can access your window methods in View using the code wizard or using the following code
DATA: l_ref_ZTEST TYPE REF TO IG_<Window_name>.
l_ref_ZTEST = wd_This->Get_Ztest_Ctr( ).
l_ref_ZTEST->Help(
).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.