copy or insert, elements from one instance to another

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

copy or insert, elements from one instance to another

Prameela R

 

 

Hello,

 

Can we insert  list of elements from one instance to another.

For example.

 

<xforms:instance id=”ins1”>  <xforms:instance id=”ins2”>

<data>                                     <data>

<item1>aaa</item1>                <set><value>val1</value></set>

<item 2>bbb</item2>               <set><value>val2</value></set>

</data>                                    </data>

</xforms:instance>                    </xforms:instance>

 

Can we insert the <value> in instance 1.(ins1) as below?

 

<xforms:instance id=”ins1”> 

<data>                                    

<item1>aaa</item1>

<item 2>bbb</item2>

<values>

<value>val1</value>

<value>val2</value>

</values>

</data>                                   

</xforms:instance>

 

 

Thanks,

Prameela



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: copy or insert, elements from one instance to another

venkata subrahmanyam

Prameela R wrote
 

 

Hello,

 

Can we insert  list of elements from one instance to another.

For example.

 

<xforms:instance id="ins1">  <xforms:instance id="ins2">

<data>                                     <data>

<item1>aaa</item1>                <set><value>val1</value></set>

<item 2>bbb</item2>               <set><value>val2</value></set>

</data>                                    </data>

</xforms:instance>                    </xforms:instance>

 

Can we insert the <value> in instance 1.(ins1) as below?

 

<xforms:instance id="ins1"> 

<data>                                     

<item1>aaa</item1>

<item 2>bbb</item2>

<values>

<value>val1</value>

<value>val2</value>

</values>

</data>                                   

</xforms:instance>

 

 

Thanks,

Prameela



--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Use <xforms:inset> on some event to insert a set of nodes from one instance to another instance. I have written when page loaded with xforms-model-construct-done event as follows

<xforms:insert ev:event="xforms-model-construct-done" context="instance('inst1')" nodeset="data" origin="instance('inst2')//data"/>       
Reply | Threaded
Open this post in threaded view
|

Re: copy or insert, elements from one instance to another

Alessandro Vernet
Administrator
subrahmanyam wrote
Use <xforms:inset> on some event to insert a set of nodes from one instance to another instance. [...]
Exactly. And for reference, this was a double post and the main thread is:

http://www.nabble.com/copy-or-insert%2C-elements-from-one-instance-to-another-td23516340.html

Alex