cancel
Showing results for 
Search instead for 
Did you mean: 

Copy values from model node to another model node with different structure

Former Member
0 Kudos

Hi,

I am getting detils from RFC1 and update some of the data into another RFC2.

the first RFC1 having the strucutre

context

NodeName

nodel

arrtibutes

the second RFC2 having the different strucutre

context

NodeName1

| nodel2

| arrtibutes2

| arrtibutes3

| nodel5

| arrtibutes4

| arrtibutes5

I need to copy the values from first one to second one.

Both are different structures.

Can any one tel me how to do it.

Thanks

Ravi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Create 1 custom controllers for each Model.

1.Cust COntroller1:

Node one.

->Attr1(type:String)

->Attr2(type:long)

2.Cust COntroller2

Node one.

->Attr1(type:String)

->Attr2(type:long)

Through the component controller only u can send the data by mapping.

In component controller:

Node one.

->Attr1(type:String)

->Attr2(type:long)

Step1:Map the elements from custControler1.

Before mapping make sure that u have data in CustController Context=>value node.

(Note:cust controler node s model node means copy the elements to value node using copyservice)

step2:Go to cust controller2 goto value node and map it.

if ur nt getting,Plz let me knw,

Thanxs,

Lavanya.G

Former Member
0 Kudos

Hi Ravi,

I think you'll need to make this copy manually because you have a totally different structure.

But see this blog post, maybe can help you some manner.

/people/valery.silaev/blog/2006/07/12/when-wdcopyservice-is-not-enough

Regards