cancel
Showing results for 
Search instead for 
Did you mean: 

passing values from one node to another node in the same context

former_member1193316
Participant
0 Kudos

Hi,

I m Having two nodes under a Context. node1 having att1 attribute and node2 having att2 attribute. and att1 is having some value say 'xyz'. i need to pass this 'xyz' to att2. dat means att2 = 'xyz'.

how to pass the value of att1 to att2

thanks in advance....

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can simply do it by set_attribute of node2, att2. The code will be:

node2->set_attribute( exporting

name = 'att2' value = 'xyz' ).

Why do you need such a binding? If both nodes are in the same context, you can get your value directly from node1 right? Why do you want it to be transfered to node2?

Regards

Nithya

Answers (0)