Re: Can I do two submissions in one action?

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

Re: Can I do two submissions in one action?

Ryan Puddephatt-3
You could do it all in a single XPL file

Or call the second submission on xforms-submit-done of the first
------------------------
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: Fri Jul 11 09:14:53 2008
Subject: [ops-users]  Can I do two submissions in one action?

Hey all,

I have the following problem:

I have data in a table which is repeated into rows. Now if you select one row you can click on an "edit" button.
This data should be written into exist (temporarely) to lock it, because I want wo prevent other users to edit the same entry...

All this should be done as following:
- write the data into exist by a xquery, that checks if the id of the data is already locked
- if not it should be written into an "2edit.xml" file
- this 2edit.xml file should be the initial file to fill my "edit" mask on an edit-page

Now my problem is that I don´t know if I can do all this with one trigger.

My code looks like this right now:

<xforms:trigger>
                            <xforms:label>Edit</xforms:label>
                            <xforms:action ev:event="DOMActivate">


<!-- here my toEdit-instance should be filled with the data chosen in a specific row, thats working....-->
                                <xforms:insert
                                    context="instance('toEdit')"
                                    nodeset="root"
                                    at="1"
                                    position="after"
                                    origin="instance('user')/remote-user"/>
                                <xforms:insert  
                                    context="instance('toEdit')"
                                    nodeset="remote-user"
                                    at="last()"
                                    position="after"
                                    origin="xxforms:context('sr-repeat')"/>


<!-- here is my PROBLEM: first the "toEditSubmission" should be done and depending on what my edit.xq does it should eather give an error message or submit the "link-edit" which leads to my edit-page -->
                                <xforms:send submission="toEditSubmission"/>
                                <xforms:send submission="link-edit"/>
                            </xforms:action>
 </xforms:trigger>




Maybe the edit.xq can call an URL, but  don´t know how...


As always:THX FOR YOUR HELP!!!!



______________________________________________________________________
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: Can I do two submissions in one action?

masjab-2
sounds good, but can you help me with the error-messages?
Ok, before I ask for help, I´ll try both ways and maybe then you could  
help me to catch the error-messages for the cases...=)


THX!!!!!!!!!!!!!!!!!


Am 11.07.2008 um 10:24 schrieb Ryan Puddephatt:

> You could do it all in a single XPL file
>
> Or call the second submission on xforms-submit-done of the first
> ------------------------
> 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: Fri Jul 11 09:14:53 2008
> Subject: [ops-users]  Can I do two submissions in one action?
>
> Hey all,
>
> I have the following problem:
>
> I have data in a table which is repeated into rows. Now if you  
> select one row you can click on an "edit" button.
> This data should be written into exist (temporarely) to lock it,  
> because I want wo prevent other users to edit the same entry...
>
> All this should be done as following:
> - write the data into exist by a xquery, that checks if the id of  
> the data is already locked
> - if not it should be written into an "2edit.xml" file
> - this 2edit.xml file should be the initial file to fill my "edit"  
> mask on an edit-page
>
> Now my problem is that I don´t know if I can do all this with one  
> trigger.
>
> My code looks like this right now:
>
> <xforms:trigger>
>                            <xforms:label>Edit</xforms:label>
>                            <xforms:action ev:event="DOMActivate">
>
>
> <!-- here my toEdit-instance should be filled with the data chosen  
> in a specific row, thats working....-->
>                                <xforms:insert
>                                    context="instance('toEdit')"
>                                    nodeset="root"
>                                    at="1"
>                                    position="after"
>                                    origin="instance('user')/remote-
> user"/>
>                                <xforms:insert
>                                    context="instance('toEdit')"
>                                    nodeset="remote-user"
>                                    at="last()"
>                                    position="after"
>                                    origin="xxforms:context('sr-
> repeat')"/>
>
>
> <!-- here is my PROBLEM: first the "toEditSubmission" should be done  
> and depending on what my edit.xq does it should eather give an error  
> message or submit the "link-edit" which leads to my edit-page -->
>                                <xforms:send  
> submission="toEditSubmission"/>
>                                <xforms:send submission="link-edit"/>
>                            </xforms:action>
> </xforms:trigger>
>
>
>
>
> Maybe the edit.xq can call an URL, but  don´t know how...
>
>
> As always:THX FOR YOUR HELP!!!!
>
>
>
> ______________________________________________________________________
> 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


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