cancel
Showing results for 
Search instead for 
Did you mean: 

Read values from one RFC; update via another?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Bhavik,

That is an excellent response. Thank you very much!!!!

/Greg

Answers (0)