on 01-18-2008 6:12 AM
Hi,
I created one DC with 2 views. I wrote the code in views.
I added this component into another DC through public part and added in used component. I want to execute component of DC1 in the component of DC2.
How to communicate this components?
Plz give me brief procedure.
Thanks
Shirisha
Hi Shirisha,
Please close the thread , if ur problem is solved.
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shirisha
You have defined the method you want to call in component controller of DC1. Create a method of the same name in the Interface controller and call the component controller method from there.
Step 1: Go to DC Metadata of DC 1 and create the public part
Step 2: Go to DC Meta data of DC 2 - Got o Used Dcs and add the Public part of DC1
Step 3: Go to used webdynpro components of DC 2 and add the component from DC1
Step4: Add the DC 1 component to the required view or controller from which you want to execute DC1.
Step5: Then call the interface controller method
regards
Deepu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Shirisha,
Check this for sample application & tutorials for ur requirement
https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#9
U will find it under Componentization section
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Steps for using methods of another component
1) Add in the "Used Web Dynpro Components" which has options of
a) Create on Demand - instance will be created on demand b) Manual - write code for creation of component
2) "Now in Component Controller, add as required controller" and you should be able to access all methods defined in Component Interface Controller which inturn call CC's methods for functionality
To use views of another compnet
1) Repeat steps 1 & part of 2 which is in quotes
2) In your CC's window, right click and say add view, you can choose compont inetrface view and add the view
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.