on 11-25-2014 1:42 PM
Hi Team,
I am trying to pass the data between two components Comp A and Component B using interface node.
here is the steps i am doing...
1) I had created two components Comp A and Comp B.
2) I had created Interface node with cardinality 0..1 and added attribute PERNR inside node and binded same to view level to input field in Comp A.
3) I had created component usage in Comp B and mentioned Comp A as used component.
4) i had mapped the interface node using interface controller and same is reflecting to my component controller context of Comp B.
5) i coded inside WDDOINIT and trying to read the data of interface node using code wizard the PERNR value of Interface node in Component B and used method INSTANTIATE used component and method call in used controller but unfortunaletly not getting the pernr value in Comp B whereas the same value i am getting inside Comp A's different method.
Do i need to check the INPUT ELEMENT(Extn.)??? if i am checking it i am getting dump stating the mapping of main component for interface node is not completed.
Please help in this issue.
Thanks
Shehzad.
Hi Shehzad,
I think you are trying to read context node of comp a inside comp B in WDDOINIT( ). Here, you will not get data of comp A. Because comp B instantiates first and then comp usage comp A gets loaded. So, first WDDOINIT of comp B executes and then comp A methods.
When you set INPUT ELEMENT(Ext.) to context node of comp A, that means that it can never accepts any data inside comp A, But it accepts data from other components where external mapping is defined.
So, you should never set data to context node in comp A, but can set it in comp B.
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for ur reply rama, But i have a requirement to pass data from COMP A to COMP B...is der any way out i can achive this......wht i am doing is i have created a input field on View of COMP A and binded it with PERNR attrubute of interface node with cardinality 0..1 and need this Input field entered value in view of COMP A to COMP B's method.
Please revert if we can achive this.
Hi,
Create a similar Interface Node in COMP-B & then in COMP-A, declare usage of used controller B in Component Controller A & map the two nodes. so data flows automatically between the node of Comp-A to Component B & vice-versa. This should definitely provide resolution to your issue.
Thanks
KH
Hi,
To achieve your requirement proceed as below
Regards,
Rama
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
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.