on 05-30-2007 11:29 AM
Hi,
i have two web dynpro components comp1 & comp2.
In comp1, i have one button 'submit'. when i click 'submit' button, it should navigate to comp2.
Moreover i need to pass two parameters to the comp2.
How to do? It will be helpful if anyone can assist.
Hi Mog,
you need to define a component usage of comp2. then within the main window of ur comp1 embed the view of comp2 to which you want to navigate.
create an outbound plug from view1 of comp1, this plug can have parameters that you need to pass.
view2 of comp2 also needs to have an inbound plug, in the signature of its handler method define the parameters you are passing from comp1.
under your window once view2 of comp2 is embeded create a navigation link between the two connecting views.
in the action handler for submit button in view1 just fire the outbound plug with appropriate parameters.
Regards,
Shweta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
there are several ways of combining components.
One way might be to create a component MAIN_COMP which contains a view that provides a <b>ViewContainer-UI-Element</b>.
In the Window-Editor the relevant Interface Views of COMP1 and COMP2 can be added to the View of MAIN?COMP.
Passing data from COMP1 to COMP2 can be done
a) with plugs that do have parameters
b) by methods in the component controller that get/set data and also fire an event to which the view has subscribed
c) there is also context-mapping
I mostelz use b) but it depends on the scenario.
Kind regards,
Silke
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
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.