Copy data from

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

Copy data from

masjab-2
Hey,

does anyone know how to copy data from one instance to another?
My problem is the following:
In my app a user can search for dictionary entires. They(the results) should be displayed in a table . From there, he should be able to "add" every chosen entry to a "vocabulary-instance" .
I don´t know how to refere to the data that is hold in one table row.

When I use :
 <xforms:insert   origin="instance('search-result')"      nodeset="instance('tempVocBook')"/>

everything is copied. 

I don´t know how to explain so I did a screenshot...=)



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

Ryan Puddephatt-3

Masen,

                Your xforms:trigger action XML would be helpful, seeing as it in a xforms:repeat you could use current() in the @nodeset

 

Ryan     

 

-----------------------------------------------

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

 

From: [hidden email] [mailto:[hidden email]]
Sent: 07 July 2008 12:21
To: [hidden email]
Subject: [ops-users] Copy data from

 

Hey,

 

does anyone know how to copy data from one instance to another?

My problem is the following:

In my app a user can search for dictionary entires. They(the results) should be displayed in a table . From there, he should be able to "add" every chosen entry to a "vocabulary-instance" .

I don´t know how to refere to the data that is hold in one table row.

 

When I use :

 <xforms:insert   origin="instance('search-result')"      nodeset="instance('tempVocBook')"/>

 

everything is copied. 

 

I don´t know how to explain so I did a screenshot...=)

 


_______________________________________________________________________
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 data from

masjab-2
Ryan, 
first of all:THX for helping me!

Do you mean this:

 <xforms:repeat nodeset="instance('search-result')/entry" id="sr-repeat">
                            <tr>
                                <td>
                                    <xforms:output ref="lemma"/>
                                </td>
                                <td>
                                    <xforms:output ref="category"/>
                                </td>
                                <td>
                                    <xforms:trigger>
                                        <xforms:label>vocBook</xforms:label>
                                        <xforms:action ev:event="DOMActivate">
                                            <xforms:insert
                                                origin="instance('search-result')"                        
                                                nodeset="instance('tempVocBook')"/>
                                        </xforms:action>
                                    </xforms:trigger>

                                

                                </td>

                                

                            </tr>
                                </xforms:repeat>



Am 07.07.2008 um 13:29 schrieb Ryan Puddephatt:

Masen,
                Your xforms:trigger action XML would be helpful, seeing as it in a xforms:repeat you could use current() in the @nodeset
 
Ryan     
 
-----------------------------------------------
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
 
From: [hidden email] [[hidden email]] 
Sent: 07 July 2008 12:21
To: [hidden email]
Subject: [ops-users] Copy data from
 
Hey,
 
does anyone know how to copy data from one instance to another?
My problem is the following:
In my app a user can search for dictionary entires. They(the results) should be displayed in a table . From there, he should be able to "add" every chosen entry to a "vocabulary-instance" .
I don´t know how to refere to the data that is hold in one table row.
 
When I use :
 <xforms:insert   origin="instance('search-result')"      nodeset="instance('tempVocBook')"/>
 
everything is copied. 
 
I don´t know how to explain so I did a screenshot...=)
 
<image001.png>

_______________________________________________________________________
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: RE: Copy data from

Ryan Puddephatt-3

Masen,

                Try replacing

 

                                            <xforms:insert

                                                origin="instance('search-result')"                        

                                                nodeset="instance('tempVocBook')"/>

 

with

 

                                            <xforms:insert

                                                origin="current()"                        

                                                nodeset="instance('tempVocBook')"/>

This should take the current entry from the xforms:repeat, if that doesn’t work, use xxforms:context(‘sr-repeat’)

 

HTH

Ryan

 

-----------------------------------------------

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

 

From: [hidden email] [mailto:[hidden email]]
Sent: 07 July 2008 13:02
To: [hidden email]
Subject: [ops-users] Re: RE: Copy data from

 

Ryan, 

first of all:THX for helping me!

 

Do you mean this:

 

 <xforms:repeat nodeset="instance('search-result')/entry" id="sr-repeat">

                            <tr>

                                <td>

                                    <xforms:output ref="lemma"/>

                                </td>

                                <td>

                                    <xforms:output ref="category"/>

                                </td>

                                <td>

                                    <xforms:trigger>

                                        <xforms:label>vocBook</xforms:label>

                                        <xforms:action ev:event="DOMActivate">

                                            <xforms:insert

                                                origin="instance('search-result')"                        

                                                nodeset="instance('tempVocBook')"/>

                                        </xforms:action>

                                    </xforms:trigger>

                                

                                </td>

                                

                            </tr>

                                </xforms:repeat>

 

 

 

Am 07.07.2008 um 13:29 schrieb Ryan Puddephatt:



Masen,

                Your xforms:trigger action XML would be helpful, seeing as it in a xforms:repeat you could use current() in the @nodeset

 

Ryan     

 

-----------------------------------------------

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]

 

From: [hidden email] [[hidden email]] 
Sent: 07 July 2008 12:21
To: [hidden email]
Subject: [ops-users] Copy data from

 

Hey,

 

does anyone know how to copy data from one instance to another?

My problem is the following:

In my app a user can search for dictionary entires. They(the results) should be displayed in a table . From there, he should be able to "add" every chosen entry to a "vocabulary-instance" .

I don´t know how to refere to the data that is hold in one table row.

 

When I use :

 <xforms:insert   origin="instance('search-result')"      nodeset="instance('tempVocBook')"/>

 

everything is copied. 

 

I don´t know how to explain so I did a screenshot...=)

 

<image001.png>


_______________________________________________________________________
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

 


______________________________________________________________________
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: Re: RE: Copy data from

masjab-2
THX, 
I´ll try after break and let you know!!!

Am 07.07.2008 um 14:13 schrieb Ryan Puddephatt:

Masen,
                Try replacing
 
                                            <xforms:insert
                                                origin="instance('search-result')"                        
                                                nodeset="instance('tempVocBook')"/>
 
with
 
                                            <xforms:insert
                                                origin="current()"                        
                                                nodeset="instance('tempVocBook')"/>
This should take the current entry from the xforms:repeat, if that doesn’t work, use xxforms:context(‘sr-repeat’)
 
HTH
Ryan
 
-----------------------------------------------
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
 
From: [hidden email] [[hidden email]] 
Sent: 07 July 2008 13:02
To: [hidden email]
Subject: [ops-users] Re: RE: Copy data from
 
Ryan, 
first of all:THX for helping me!
 
Do you mean this:
 
 <xforms:repeat nodeset="instance('search-result')/entry" id="sr-repeat">
                            <tr>
                                <td>
                                    <xforms:output ref="lemma"/>
                                </td>
                                <td>
                                    <xforms:output ref="category"/>
                                </td>
                                <td>
                                    <xforms:trigger>
                                        <xforms:label>vocBook</xforms:label>
                                        <xforms:action ev:event="DOMActivate">
                                            <xforms:insert
                                                origin="instance('search-result')"                        
                                                nodeset="instance('tempVocBook')"/>
                                        </xforms:action>
                                    </xforms:trigger>
                                
                                </td>
                                
                            </tr>
                                </xforms:repeat>
 
 
 
Am 07.07.2008 um 13:29 schrieb Ryan Puddephatt:


Masen,
                Your xforms:trigger action XML would be helpful, seeing as it in a xforms:repeat you could use current() in the @nodeset
 
Ryan     
 
-----------------------------------------------
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
 
From: [hidden email] [[hidden email]] 
Sent: 07 July 2008 12:21
To: [hidden email]
Subject: [ops-users] Copy data from
 
Hey,
 
does anyone know how to copy data from one instance to another?
My problem is the following:
In my app a user can search for dictionary entires. They(the results) should be displayed in a table . From there, he should be able to "add" every chosen entry to a "vocabulary-instance" .
I don´t know how to refere to the data that is hold in one table row.
 
When I use :
 <xforms:insert   origin="instance('search-result')"      nodeset="instance('tempVocBook')"/>
 
everything is copied. 
 
I don´t know how to explain so I did a screenshot...=)
 
<image001.png>

_______________________________________________________________________
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
 

______________________________________________________________________
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: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws



--
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: RE: Re: RE: Copy data from

masjab-2
strange...
I always get the following error:

XPath syntax error at char 9 in {current()}:
Cannot use the current() function in a non-XSLT context
 
with
 
                                            <xforms:insert
                                                origin="current()"                        
                                                nodeset="instance('tempVocBook')"/>
This should take the current entry from the xforms:repeat, if that doesn’t work, use xxforms:context(‘sr-repeat’)
 



--
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: Re: RE: Re: RE: Copy data from

Ryan Puddephatt-3
In reply to this post by masjab-2
Use xxforms:context, it probably mean orbeon haven't implemented this function as I thought they had
------------------------
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
Sent from my blackberry device

----- Original Message -----
From: [hidden email] <[hidden email]>
To: [hidden email] <[hidden email]>
Sent: Mon Jul 07 20:13:42 2008
Subject: [ops-users] Re: Re: RE: Re: RE:  Copy data from

strange...
I always get the following error:

XPath syntax error at char 9 in {current()}:
Cannot use the current() function in a non-XSLT context

                                 
                with
                 
                                                            <xforms:insert
                                                                origin="current()"                        
                                                                nodeset="instance('tempVocBook')"/>
                This should take the current entry from the xforms:repeat, if that doesn’t work, use xxforms:context(‘sr-repeat’)
                 

               

______________________________________________________________________
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 data from

Erik Bruchez
Administrator
In reply to this post by masjab-2
We have an RFE for current():

   http://tinyurl.com/56rucz

We kind of implemented at some point I think, but then it turned out  
it did not work properly.

But as suggested, maybe you want the context() function instead.

-Erik

On Jul 7, 2008, at 12:13 PM, Masen J wrote:

> strange...
> I always get the following error:
>
> XPath syntax error at char 9 in {current()}:
> Cannot use the current() function in a non-XSLT context
>>>
>>> with
>>>
>>>                                             <xforms:insert
>>>                                                 origin="current()"
>>>                                                  
>>> nodeset="instance('tempVocBook')"/>
>>> This should take the current entry from the xforms:repeat, if that  
>>> doesn’t work, use xxforms:context(‘sr-repeat’)
--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Copy data from

masjab-2
Sorry , but how does it has to look like?

This is  not working:
<xforms:repeat nodeset="instance('search-result')/entry" id="sr-repeat">
                            <tr>
                                <td>
                                    <xforms:output ref="lemma"/>
                                </td>

                                

                                <td>
                                    <xforms:output ref="category"/>
                                </td>

                                

                                <td>
                                    <xforms:trigger>
                                        <xforms:label>vocBook</xforms:label>
                                        <xforms:action ev:event="DOMActivate">
                                            <xforms:insert
                                                origin="xxforms:context(‘sr-repeat’)"                        
                                                nodeset="instance('tempVocBook')"/>
                                        </xforms:action>
                                    </xforms:trigger>

                                

                                </td>






Am 08.07.2008 um 01:18 schrieb Erik Bruchez:

We have an RFE for current():

 http://tinyurl.com/56rucz

We kind of implemented at some point I think, but then it turned out it did not work properly.

But as suggested, maybe you want the context() function instead.

-Erik

On Jul 7, 2008, at 12:13 PM, Masen J wrote:

strange...
I always get the following error:

XPath syntax error at char 9 in {current()}:
Cannot use the current() function in a non-XSLT context

with

                                           <xforms:insert
                                               origin="current()"
                                               nodeset="instance('tempVocBook')"/>
This should take the current entry from the xforms:repeat, if that doesn’t work, use xxforms:context(‘sr-repeat’)

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



--
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: Re: Copy data from

Ryan Puddephatt-3
In reply to this post by masjab-2
That looks right
------------------------
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
Sent from my blackberry device

----- Original Message -----
From: [hidden email] <[hidden email]>
To: [hidden email] <[hidden email]>
Sent: Tue Jul 08 07:47:40 2008
Subject: [ops-users] Re: Re: Copy data from

Sorry , but how does it has to look like?

This is  not working:
<xforms:repeat nodeset="instance('search-result')/entry" id="sr-repeat">
                            <tr>
                                <td>
                                    <xforms:output ref="lemma"/>
                                </td>

                               


                                <td>
                                    <xforms:output ref="category"/>
                                </td>

                               


                                <td>
                                    <xforms:trigger>
                                        <xforms:label>vocBook</xforms:label>
                                        <xforms:action ev:event="DOMActivate">
                                            <xforms:insert
                                                origin="xxforms:context(‘sr-repeat’)"                        
                                                nodeset="instance('tempVocBook')"/>
                                        </xforms:action>
                                    </xforms:trigger>

                               


                                </td>










Am 08.07.2008 um 01:18 schrieb Erik Bruchez:


        We have an RFE for current():
       
         http://tinyurl.com/56rucz
       
        We kind of implemented at some point I think, but then it turned out it did not work properly.
       
        But as suggested, maybe you want the context() function instead.
       
        -Erik
       
        On Jul 7, 2008, at 12:13 PM, Masen J wrote:
       
       

                strange...
               

                I always get the following error:
               


                XPath syntax error at char 9 in {current()}:
               

                Cannot use the current() function in a non-XSLT context
               


                                with
                               


                                                                           <xforms:insert
                               

                                                                               origin="current()"
                               

                                                                               nodeset="instance('tempVocBook')"/>
                               

                                This should take the current entry from the xforms:repeat, if that doesn’t work, use xxforms:context(‘sr-repeat’)
                               


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



______________________________________________________________________
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: Re: Re: Copy data from

masjab-2
but still not working...
I tried the following:

                            <xforms:repeat nodeset="instance('search-result')/entry" id="sr-repeat">
                            <tr>
                                <td>
                                    <xforms:output ref="lemma"/>
                                </td>
                                <td>
                                    <xforms:output ref="category"/>
                                </td>
                                <td>
                                    <xforms:trigger>
                                        <xforms:label>vocBook</xforms:label>
                                        <xforms:action ev:event="DOMActivate">
                                        <xforms:insert 
                                            context="instance('tempVocBook')"
                                            nodeset="remote-user"
                                            at="last()"
                                            position="after"
                                            origin="instance('search-result')/entry/id[xxforms:context('sr-repeat')]"/>
                                        </xforms:action>
                                    </xforms:trigger>
                                </td>

But still every "id" from my result is copied..=(



--
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: Re: Re: Re: Copy data from

Ryan Puddephatt-3

Try

 

                                        <xforms:insert 

                                            context="instance('tempVocBook')"

                                            nodeset="remote-user"

                                            at="last()"

                                            position="after"

                                            origin=" xxforms:context('sr-repeat')/id"/>

 

or modify your xpath to do what you want, like

 

                                        <xforms:insert 

                                            context="instance('tempVocBook')"

                                            nodeset="remote-user"

                                            at="last()"

                                            position="after"

                                            origin="instance('search-result')/entry/id[. = xxforms:context('sr-repeat')]"/>

 

 

-----------------------------------------------

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

 

From: [hidden email] [mailto:[hidden email]]
Sent: 08 July 2008 09:41
To: [hidden email]
Subject: [ops-users] Re: Re: Re: Re: Copy data from

 

but still not working...

I tried the following:

 

                            <xforms:repeat nodeset="instance('search-result')/entry" id="sr-repeat">

                            <tr>

                                <td>

                                    <xforms:output ref="lemma"/>

                                </td>

                                <td>

                                    <xforms:output ref="category"/>

                                </td>

                                <td>

                                    <xforms:trigger>

                                        <xforms:label>vocBook</xforms:label>

                                        <xforms:action ev:event="DOMActivate">

                                        <xforms:insert 

                                            context="instance('tempVocBook')"

                                            nodeset="remote-user"

                                            at="last()"

                                            position="after"

                                            origin="instance('search-result')/entry/id[xxforms:context('sr-repeat')]"/>

                                        </xforms:action>

                                    </xforms:trigger>

                                </td>

 

But still every "id" from my result is copied..=(

 


_______________________________________________________________________
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: Re: Re: Re: Re: Copy data from

masjab-2
THX!!!!
this is working:

   <xforms:insert 
                                            context="instance('tempVocBook')"
                                            nodeset="remote-user"
                                            at="last()"
                                            position="after"
                                            origin=" xxforms:context('sr-repeat')/id"/>




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

Alex Bleasdale
In reply to this post by masjab-2
Hello everyone,

I'm wondering whether anyone can help me out here - I'm trying to copy a node from one instance to another and the copy is working, but it's ending up in the wrong place.

I have this wrapped inside a trigger:

<xf:insert origin="instance('resources')//Buyers/Person" nodeset="instance('my-document')//Buyers" />

In the instance called 'my-document' (the primary instance), I have an empty Buyers node, like this:

<Document>
    <Buyers></Buyers>
    <Sellers></Sellers>
</Document>

And in my 'resources' instance, I have a similar structure, but I have something like this:
<Buyers>
  <Person>
      <Stuff />
  </Person>
</Buyers>

The 'insert' (or copy) is working in some respects, it's copying exactly what I want it to.  But it's inserting the <Person /> node after the closing Buyer tag, like this:

<Buyers></Buyers>
<Person>
   <Stuff />
</Person>

Could anyone tell me how I can get the xf:insert to dump the information inside the Buyers tag (e.g. in between the opening and closing tag?)

Thanks so much in advance.

A
Reply | Threaded
Open this post in threaded view
|

Re: Re: Copy data from

Erik Bruchez
Administrator
Try:

   <xf:insert origin="instance('resources')//Buyers/Person
     context="instance('my-document')//Buyers" />

@context basically says two things:

* Use that as context node to evaluate the other XPath expressions on  
xf:insert
* If there is no @nodeset attribute, then insert within the node  
pointed to by @context

I recommend this part of the XForms 1.1 spec for examples of insert/
delete:

   http://www.w3.org/TR/xforms11/#insert-delete-patterns

-Erik

On Jul 25, 2008, at 9:34 AM, Alex Bleasdale wrote:

>
> Hello everyone,
>
> I'm wondering whether anyone can help me out here - I'm trying to  
> copy a
> node from one instance to another and the copy is working, but it's  
> ending
> up in the wrong place.
>
> I have this wrapped inside a trigger:
>
> <xf:insert origin="instance('resources')//Buyers/Person"
> nodeset="instance('my-document')//Buyers" />
>
> In the instance called 'my-document' (the primary instance), I have  
> an empty
> Buyers node, like this:
>
> <Document>
>    <Buyers></Buyers>
>    <Sellers></Sellers>
> </Document>
>
> And in my 'resources' instance, I have a similar structure, but I have
> something like this:
> <Buyers>
>  <Person>
>      <Stuff />
>  </Person>
> </Buyers>
>
> The 'insert' (or copy) is working in some respects, it's copying  
> exactly
> what I want it to.  But it's inserting the <Person /> node after the  
> closing
> Buyer tag, like this:
>
> <Buyers></Buyers>
> <Person>
>   <Stuff />
> </Person>
>
> Could anyone tell me how I can get the xf:insert to dump the  
> information
> inside the Buyers tag (e.g. in between the opening and closing tag?)
>
> Thanks so much in advance.
>
> A
>
> --
> View this message in context: http://www.nabble.com/Copy-data-from-tp18314623p18655315.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.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
--
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