on 07-07-2012 2:22 AM
On click of button in view of dynpro component 1 i would like to call a particular view of the second dynpro component to display the details..
Help me out..
Check the below document:
http://scn.sap.com/docs/DOC-25702
In this document create an Interface node in component: ZPP_TEST_COMP_USAGE_N
then, map this to context of main component ZPP_TEST_COMP_USAGE,
set the values to created node at main component level ZPP_TEST_COMP_USAGE_N,
now fire the plug / open popup...
try
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To pass the data between the components:
1. Create a node with required attributes and define the node as an interface node.
2. Go the other component and define external context mapping.
2. Create view container UI element in the view1
3. Define component 2 as used component and Enter Reuse as a alias name under the component Use column in the component 1.
4. Go to window of the view 1 assigned
5. Right click on the view container of the view-->embed view-->click on F4 of View to be embedded
6. From the displayed POP UP, Select View of the second component and click enter
This is the way, how we access the data between the components and calling the view of other components.
Regards,
Sankar Gelivi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Question 1:-
->When ever u want to use one component view into another component you have to use 'COMPONENT USAGE ' Concept. So to do this fallow below steps...
we have 2 components .. comp1 and comp2.
comp1 has view1 & view11
comp2 has view2 & view 22.
Now u want to call view 1 into view2...
Steps:-
in comp2 u have to inculde comp1....when ever u do this then automatically u can call the views of comp1 into comp2.
create view container in comp2 and embed the view1 into that view container....
Then it automatically comes into comp2 -view2.
Pls refer below link to get more exposure...
http://www.saptechnical.com/Tutorials/WebDynproABAP/Reusability/demo.htm...
Question2:-
-> If u want to send data from one comp1 to comp2...
then u have to declare method as interface method... and u can access the nodes also to do this u have to create node with property interface ... when ever u do like above then automatically we can send data....
In above link u can find interface methods and nodes...... If u have any doubt post here...
Regards,
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The context is media for passing values between two controllers, when you define reusable component control check interface property of context node. This will allow you to share values between different components.
There are several ways to call views based on dynamic conditions, easiest would be to create window for each view in 2nd component controller and embebd them in 1st component controller using viewuielement and call accordingly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
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.