on 05-29-2007 10:49 PM
I'm new to the Webdynpro framework and am struggling with the following simple scenario. I have a view that reads UI info from an RFC (context/model). I've bound my DropDownByIndex object to that RFC model. However the selected value I want to submit to another context/model. Is this a relationship that is created with NWDS or is it something I would code? Meaning once I'm ready to submit I would collect my response data and bind it to the other context and model before submitting?
Much Thanks
/Greg
Hi Greg,
Lets assume that you are getting data from RFC in RFC1_output node.
Strucutre is:
RFC1_input
|_ RFC_Output
|_ RFCData
|_value1
Here, you are getting dropdown values under RFCData node in value1 attribute.
You have bound this RFCData.value1 to dropdownbyIndex UI element, right?
Now, you want to set selected value in another Context or model.
Assume, the structure of another node is,
Node1
|_ NodeValue
To set value,
first initialize you node with following:
ele1 = wdcontext.nodeNode1().createNode1Element();
wdcontext.nodeNode1().bind(ele1);
This initialization will work if it is a value node. If it is a model node then write following code:
ele1 = new <Model node class>();
wdcontext.node<model node>().bind(ele1);
and set value using:
ele1.setNodeValue(wdcontext.currentRFCData().getvalue1());
Try this and let me know.
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.