on 05-13-2010 11:47 AM
Dear All,
I want to access the node data of Component controller of a component in another Webdynpro component for this i followed the below process.
1.Selected the interface check box of node to be accessed in component1.
2.In component2 in Component useage i gave Component1 name.
3.in the view of component2 under context i selected the controller Usage and selected component1.By this the interface node of component1 is visible.
4.I mapped that interface node to Context of component2 view.
5.In init method i tried to extract the data of interface node in view of component2.
But i am not able to get the data of component1 from interface node.it is just showing blank...................
What can be the probleum????
It may well be that you are accessing a different instance of the first component from your second component. (should be easy to check this in the debugger)
The examples etc given should guide you through this problem.
For a simple solution you can use the FPM to control the instantiation of your components. You can then be sure that the various component instances will share contexts correctly. - Simple is probably not the right word - but this is one of the advantages that using the FPM gives you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
I am forwarding an example of select-option, here they demonstrated component usage.
I hope it will help you to understand.
http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-Complexselect-optionscomponent+usages
Regards and Best wishes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There is a Standard WD component WDT_COMPONENTUSAGE. In this Component they are fetching the data from the 1st component in NODE_INTERFACE in action GOTO_BOOKINGS.
Compare your application with this Standard one. Hope it helps you.
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 | |
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.