Why don't you store the returning value into another instance and then you can use it how you want
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 Sent from my blackberry device ----- Original Message ----- From: [hidden email] <[hidden email]> To: [hidden email] <[hidden email]> Sent: Sun Jul 13 21:42:36 2008 Subject: [ops-users] A general question about submitting data... Hey all, can someone please help me to understand...: 1) if I have data that needs to be submit to a example.xq that works with this data in an eXistDB, what is the best way? Right now I do a submission but then the page changes because the example.xq does return data... But I don´t want my form to change. I want to stay in the same page and depending on what my example.xq returns I want to continue... 2) How can I use the returned value from my example.xq to create a message in orbeon: Here a scenario: User fills out a form and presses "save". My submission posts the data to my save.xq, this checks if there is already a similar entry. If there is one it does not save and gives back <alert>already in database</alert>. This is used to create a message in orbeon. If there is no entry, it is saved and it returns <ok>ok,save</ok> This should be also create a message like: your entry was saved.... The thing is that all described above does work right now but only on html pages created with my xquery. But I don´t want to leave the page... So here my question: Am I right when I use "subissions" in cases like this, or should I use a xpl... Please, a small description to understand a little bit more the orbeon- system would be great!!! THX so much!!!!! ______________________________________________________________________ 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 |
That is, what I was looking forward to do, but still I would like to
know if it´s possible to do something like a submission but without leaving the page or receiving any data... Sometimes I just want to call an xquery that does something and I don ´t want any received data... Anyway, I am going to catch and store the value in an instance as you said and create a message. THX Am 13.07.2008 um 22:50 schrieb Ryan Puddephatt: > Why don't you store the returning value into another instance and > then you can use it how you want > > 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 > Sent from my blackberry device > > ----- Original Message ----- > From: [hidden email] <[hidden email]> > To: [hidden email] <[hidden email]> > Sent: Sun Jul 13 21:42:36 2008 > Subject: [ops-users] A general question about submitting data... > > Hey all, > > can someone please help me to understand...: > > 1) if I have data that needs to be submit to a example.xq that works > with this data in an eXistDB, > what is the best way? > Right now I do a submission but then the page changes because the > example.xq does return data... > But I don´t want my form to change. > I want to stay in the same page and depending on what my example.xq > returns I want to continue... > > 2) How can I use the returned value from my example.xq to create a > message in orbeon: > Here a scenario: > User fills out a form and presses "save". My submission posts the data > to my save.xq, this checks if there is already a similar entry. > If there is one it does not save and gives back <alert>already in > database</alert>. > This is used to create a message in orbeon. > If there is no entry, it is saved and it returns <ok>ok,save</ok> > This should be also create a message like: your entry was saved.... > > The thing is that all described above does work right now but only on > html pages created with my xquery. > But I don´t want to leave the page... > > So here my question: > Am I right when I use "subissions" in cases like this, or should I use > a xpl... > Please, a small description to understand a little bit more the > orbeon- > system would be great!!! > > THX so much!!!!! > > > ______________________________________________________________________ > 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 |
Masen,
> That is, what I was looking forward to do, but still I would like to > know if it´s possible to do something like a submission but without > leaving the page or receiving any data... if you don't want to use the data returned, just add a replace="none" to your xforms:submission: "The response returned from the submission is applied as follows: (...) For a success response including a body, when the value of the replace attribute on element submission is "none", submission processing concludes after dispatching xforms-submit-done with appropriate context information." http://www.w3.org/TR/xforms11/#submit-evt-submit 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 |
Free forum by Nabble | Edit this page |