on 11-29-2006 11:26 AM
Hi all,
I got 2 component A and B. Component A use component B.
I would like to know how to set interface context attribute value of comonent B within a view of component A in programatic mode.
It should be something like this:
wdThis.wdGetCompBInterface().wdGetContext.setAttr1("OK");
is it possible???
thank u in advance,
Stefano
Hi
In your query consider B has BA Context which you want to fill from main componetn A
Yes it is possible to add values from A to B but I did it only through context mapping instead of direct refrence of interface controller .
For that you need to do context mapping .
1) Add B into A as used Web dynpro component .
2) Add controller refrence in Component controller using properties of WDC.
3) Map the context element from Interface controller to Component controller
Set values of context of component controller which will set values for context
of A
4) Only issue here is if you want to refresh values frequently you might need to create and destroy component each time . Not sure about it . In my case I m intitalising all context of B in init of A itself.
Regards
Srushti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I've checked your link but it's not exactly what I need...
In the link to the help.sap.com the data transfer between component is made using external context mapping, what I need is to make that binding dynamically.
is there a way to do that?
Stefano
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just go through the following links...
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/f3b0ad90-0201-0010-4995-9bdb1849eb34
Thanks
Dheerendra Shukla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes. Check the example
http://help.sap.com/saphelp_nw2004s/helpdata/en/d7/e551cf896c3a49bb87bb4ce38c99c8/frameset.htm
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.