on 06-26-2007 10:14 AM
Hello
A component 'A 'has a tree.´
The second component 'B' does call a method with import parameter that should be filled dependent of the tree element that was clicked before in compA.
How do I get the information which element was clicked from Component A to Component B in the best way.
(context ? parameters?)
Thanks.
Carola
Hi Carola,
Create a context node as an interface node in the component controller of component A. Declare a usage of component A in component B. So the context node is accessible in component B. You can then map it in component B in the view itself. The component usage needs to be specified in the view also, other than having it at the component level.
This can also be achieved by having a component interface and an interface view with parameters in the plugs, but context mapping is a better way to do it.
Regards,
Nithya
Message was edited by:
Nithya S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Carola.
That is correct. You could define an interface method in componentB and when something is clicked in the tree you can pass the needed data or context element to the used component via this interafce method.
But Nithya's approach is also easy to implement.
Cheers,
Sascha
Message was edited by:
Sascha Dingeldey
Hallo Sascha.
could you please tell me more in details in which Controller I have to set the flag
INput-element (Ext.) for external mapping and where have I to define component usage and controller usage???
Componente A is my main component which uses CompB. Comp B should get data from CompA.
Thanks.
Carola
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Carola.
You have to set the flag in component B. Then define the same node in
component A. Define the component usage in component A. In the object
navigator go to the component usages node of component A and open all
subnodes.
Here open the interface controller of componentB. Add the controller usage of the
component controller of componentA by hitting the button at the top (Controller
Usage). Then you can drag the node of component controller (component A) to the node of the
interface controller (component B) and voila .. external mapping defined.
Hope this helps,
Sascha
Message was edited by:
Sascha Dingeldey
Hello
just one more question to the interface method and context data.
I've shared the context node (interface controller) which contains the data that I need in Component B after clicking in the tree of the main Component A.
I fill the context in component A. Is it necessary to call SET_ATTRIBUTE in the interface method of Comp B to have the context data available.? Or does the transport work just via binding ?
Kind regards.
Carola
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks.
Carola
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.