Copy a node from one instance to another

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

Copy a node from one instance to another

Antoine.DE-TROOSTEMBERGH
Copy a node from one instance to another

Hi,

Is it possible to copy nodes from one instance to another.
What I'm trying to do is the following:

I have an instance in which I upload files automatically (using a <xforms:action ev:event="xforms-select"> on the <xforms:upload)

    <xforms:instance id="files-instance">
        <files>
        <file filename="" mediatype="" size="" xmlns=""/>
        </files>
    </xforms:instance>

And another instance containing my main form.
I would like to upload files, and when submitting the form, copy the nodes containing the file to the main instance.
I don't want to put the files directly in the main instance since this one can contain errors wich would prevent the files to be uploaded.

Is this the correct way to do it?

I hope I'm clear

Thanks,

Antoine



--
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 a node from one instance to another

Frank Feng
Copy a node from one instance to another
I have the similar question: How to copy a value from one node to another?
 
Frank
 

---------------------------------
Dr. Yankui(Frank) Feng
Digital Library Systems Developer
The University of York
Heslington, York, YO10 5DD, UK
Tel: +44 (0) 1904-434507
Email: yf508 at york.ac.uk
---------------------------------

 


From: [hidden email] [mailto:[hidden email]]
Sent: 10 October 2008 10:51
To: [hidden email]
Subject: [ops-users] Copy a node from one instance to another

Hi,

Is it possible to copy nodes from one instance to another.
What I'm trying to do is the following:

I have an instance in which I upload files automatically (using a <xforms:action ev:event="xforms-select"> on the <xforms:upload)

    <xforms:instance id="files-instance">
        <files>
        <file filename="" mediatype="" size="" xmlns=""/>
        </files>
    </xforms:instance>

And another instance containing my main form.
I would like to upload files, and when submitting the form, copy the nodes containing the file to the main instance.
I don't want to put the files directly in the main instance since this one can contain errors wich would prevent the files to be uploaded.

Is this the correct way to do it?

I hope I'm clear

Thanks,

Antoine



--
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: RE: Copy a node from one instance to another

fl.schmitt(ops-users)
Frank,

> I have the similar question: How to copy a value from one node to another?

just use xforms:setvalue:
http://www.orbeon.com/ops/doc/reference-xforms-ng#xforms-setvalue

hth
florian



--
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 a node from one instance to another

Ryan Puddephatt-3
In reply to this post by Antoine.DE-TROOSTEMBERGH
Use xforms:insert
-----------------------------------------------
Ryan Puddephatt
FIX Developer
Fidessa LatentZero
1 Alfred Place
London WC1E 7EB
Office: +44 (0) 20 7462 4200
Direct: +44 (0) 20 7323 6112
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7462 4242
Email: [hidden email]
Web: http://www.latentzero.com


----- Original Message -----
From: [hidden email] <[hidden email]>
To: [hidden email] <[hidden email]>
Sent: Fri Oct 10 10:51:07 2008
Subject: [ops-users] Copy a node from one instance to another

Hi,

Is it possible to copy nodes from one instance to another.
What I'm trying to do is the following:

I have an instance in which I upload files automatically (using a <xforms:action ev:event="xforms-select"> on the <xforms:upload)

    <xforms:instance id="files-instance">
        <files>
        <file filename="" mediatype="" size="" xmlns=""/>
        </files>
    </xforms:instance>

And another instance containing my main form.
I would like to upload files, and when submitting the form, copy the nodes containing the file to the main instance.
I don't want to put the files directly in the main instance since this one can contain errors wich would prevent the files to be uploaded.

Is this the correct way to do it?

I hope I'm clear

Thanks,

Antoine


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com


--
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: RE: Copy a node from one instance to another

Ryan Puddephatt-3
In reply to this post by Antoine.DE-TROOSTEMBERGH
Use xforms:setvalue
-----------------------------------------------
Ryan Puddephatt
FIX Developer
Fidessa LatentZero
1 Alfred Place
London WC1E 7EB
Office: +44 (0) 20 7462 4200
Direct: +44 (0) 20 7323 6112
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7462 4242
Email: [hidden email]
Web: http://www.latentzero.com


----- Original Message -----
From: yf508 <[hidden email]>
To: [hidden email] <[hidden email]>
Sent: Fri Oct 10 10:53:50 2008
Subject: [ops-users] RE: Copy a node from one instance to another

I have the similar question: How to copy a value from one node to another?
 
Frank
 

---------------------------------
Dr. Yankui(Frank) Feng
Digital Library Systems Developer
The University of York
Heslington, York, YO10 5DD, UK
Tel: +44 (0) 1904-434507
Email: yf508 at york.ac.uk
---------------------------------

 

________________________________

From: [hidden email] [mailto:[hidden email]]
Sent: 10 October 2008 10:51
To: [hidden email]
Subject: [ops-users] Copy a node from one instance to another



Hi,

Is it possible to copy nodes from one instance to another.
What I'm trying to do is the following:

I have an instance in which I upload files automatically (using a <xforms:action ev:event="xforms-select"> on the <xforms:upload)

    <xforms:instance id="files-instance">
        <files>
        <file filename="" mediatype="" size="" xmlns=""/>
        </files>
    </xforms:instance>

And another instance containing my main form.
I would like to upload files, and when submitting the form, copy the nodes containing the file to the main instance.
I don't want to put the files directly in the main instance since this one can contain errors wich would prevent the files to be uploaded.

Is this the correct way to do it?

I hope I'm clear

Thanks,

Antoine


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com


--
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 a node from one instance to another

Erik Bruchez
Administrator
In reply to this post by Antoine.DE-TROOSTEMBERGH
If you just want to copy values:

   <xforms:setvalue ref="instance('destination')/my/node"  
value="instance('source')/my/node"/>

If you want to copy elements or attributes:

   <xforms:insert context="instance('destination')/my/node"  
origin="instance('source')/my/node"/>

-Erik

On Oct 10, 2008, at 2:51 AM, <Antoine.DE-
[hidden email]> <[hidden email]
 > wrote:

> Hi,
>
> Is it possible to copy nodes from one instance to another.
> What I'm trying to do is the following:
>
> I have an instance in which I upload files automatically (using a  
> <xforms:action ev:event="xforms-select"> on the <xforms:upload)
>
>     <xforms:instance id="files-instance">
>         <files>
>         <file filename="" mediatype="" size="" xmlns=""/>
>         </files>
>     </xforms:instance>
>
> And another instance containing my main form.
> I would like to upload files, and when submitting the form, copy the  
> nodes containing the file to the main instance.
> I don't want to put the files directly in the main instance since  
> this one can contain errors wich would prevent the files to be  
> uploaded.
>
> Is this the correct way to do it?
>
> I hope I'm clear
>
> Thanks,
>
> Antoine
>
>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



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