on 10-29-2008 5:14 PM
Hi friends,
Could you pls help me in this issue.
I am new to webdynpro abap.
I have an action on my first view.
basically its a sales order linktoaction. when i click it, i have to check a condition.
if process type = A,
then navigate to view 2(different abap webdynpro component's view)
elseif process type = B,
then navigate to view 3(different abap webdynpro component's view)
endif.
I only have experience in calling one view for a action, so i dont have much idea on this how to acheive.
I have this IF condition, on action event.ON that i need to call view of another application.
thanks in advance,
Niraja
Pls read the context and context element details. If the context element meetus ur required condition the file the oubound plug which goes to the view.
For eg:
if <elment_detail> = 'X'.
wd_this-> fire_plg1() -- This will call one view.
elae.
wd_this -> fire_plg2() -- This will call another view.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank yo so so much ABAP WD,
seems that links document wil help me all along.
Just 2 questions, is that links document pdf, will the second view opens in other browser or same browser.
ALso i want to pass some values to second WDA. How to pass it?
and in second WDA, how and where can i read that values.
Please make me happy
Thanks in advance,
Niraja
1) Second view will open in the same browser.
2) In the Secon view you will have method WDDOINIT.
In that method First read the context node refrence
data: nodee_order_header type ref to if_wd_context_node.
node_order_header = wd_context->get_child_node( name = 'ORDER_HEADER' ).
Then bind your data table to
order_header->bind_table( it_orderh ).
it_orderh is your internal table.
Hi Niraja,
If you want to pass parameters to a WDA application you can pass them by URL link.
Example: http://...?pass1=value1&pass2=value2 In this case you pass two parameters to the application.
In WDA application you can control parameters in windows, you can add parameters in the plug 'Startup' which names are same as URL parameters, and then you can create notes/attributes in the context of windows then map them to the context of view. In the method of startup plug you can pass the parameters to the context of windows. You can search WDA help by WDA application parameters.
You can check this [link |http://saptechnical.com/Tutorials/WebDynproABAP/DynamicViews/Window.htm]for dynamic view navigation in a window. And no its a pdf file. It takes you to another website where they have explained it with step-by-step screenshots.
You may also be interested in checking out this [link |http://saptechnical.com/Tutorials/WebDynproABAP/views/navigation.htm]where they have explained Navigation from one View to other View along with parameters using Plugs with out using Component Controller context. It too isn't a pdf & does take you to another website.
Hope these help.
Regards,
Uday
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.