How to add one instance data into other instance in xfors

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

How to add one instance data into other instance in xfors

Laxmi Narayana-3
Hi,
 
I have instances like main-instance,file-instance etc...
 
I am using xforms:upload control it will add nodes dynamically to file-instance. 
 
Therse file-instance i need to add into main-instance. How can we achieve in xforms.
 
 <xforms:instance id="main-instance">
 <instance>
  <xi:include href="input:data"/>
 
  <seqno/>
  <IsInfo/>
  <dummy/>
  <send_mail/>
  <already_send/>
 </instance>
</xforms:instance>
 
<xforms:instance id="file-instance">
      <instance xmlns="">
       
       <file filename="" mediatype="" size=""/>  ///these will be added dynamically through upload control.
       <file filename="" mediatype="" size=""/>
      </instance>
     </xforms:instance>
these  <file filename="" mediatype="" size=""/> 
          <file filename="" mediatype="" size=""/> nodes i need to add into main-instance while submitting.

Please help me,
Thanks in advance,
Laxmi Narayana.



--
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: How to add one instance data into other instance in xfors

Hank Ratzesberger
Hi Laxmi,

I think you want the XForms 1.1 insert element with attributes that help you 
copy more than just simple content.


another example that may be some use.


The topic has come up in the mailing list several times as well, worth 
a search.

Cheers,
Hank



On Apr 8, 2009, at 11:59 PM, Laxmi Narayana wrote:

Hi,
 
I have instances like main-instance,file-instance etc...
 
I am using xforms:upload control it will add nodes dynamically to file-instance. 
 
Therse file-instance i need to add into main-instance. How can we achieve in xforms.
 
 <xforms:instance id="main-instance">
 <instance>
  <xi:include href="input:data"/>
 
  <seqno/>
  <IsInfo/>
  <dummy/>
  <send_mail/>
  <already_send/>
 </instance>
</xforms:instance>
 
<xforms:instance id="file-instance">
      <instance xmlns="">
       
       <file filename="" mediatype="" size=""/>  ///these will be added dynamically through upload control.
       <file filename="" mediatype="" size=""/>
      </instance>
     </xforms:instance>
these  <file filename="" mediatype="" size=""/> 
          <file filename="" mediatype="" size=""/> nodes i need to add into main-instance while submitting.

Please help me,
Thanks in advance,
Laxmi Narayana.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws

Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
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