|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
Submit from one form to Xquery and catch returned xml-output in new formHey,
I can anybody tell if if it´s possible to do the following(and how): i) submit instance to an xquery (at that moment I would be in my "search" site and the user is able to click on a "edit" button for each entry) ii) edit/check instance and return it from xquery iii) return it to another form (here I would like to be in my "edit" page that gets the output of the xquery) Right now I am doing this by hand....=( Should I let the xquery generate the whole editpage? -- You receive this message as a subscriber of the ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
RE: Submit from one form to Xquery and catch returned xml-output in new formUse XPL to do the xquery stuff, use the xforms:submission to replace the page with the new one. The output of the XPL will be passed to the new page
----------------------------------------------- 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: rpuddephatt@... Web: http://www.latentzero.com -----Original Message----- From: masenjabban@... [mailto:masenjabban@...] Sent: 21 July 2008 08:08 To: ops-users@... Subject: [ops-users] Submit from one form to Xquery and catch returned xml-output in new form Hey, I can anybody tell if if it´s possible to do the following(and how): i) submit instance to an xquery (at that moment I would be in my "search" site and the user is able to click on a "edit" button for each entry) ii) edit/check instance and return it from xquery iii) return it to another form (here I would like to be in my "edit" page that gets the output of the xquery) Right now I am doing this by hand....=( Should I let the xquery generate the whole editpage? ______________________________________________________________________ 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 ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: RE: Submit from one form to Xquery and catch returned xml-output in new formthis is, what I wanted to do..
But can you help me a little bit with it? 1) My forms are ready, my xquery, too.. > Use XPL to do the xquery stuff How? What does happen there? Do I submit my instance to an example.xpl that calls my xquery? 2) > use the xforms:submission to replace the page with the new one How? I mean, I know how to use it to open a new page... But does this all happen in an action or trigger? 3) > The output of the XPL will be passed to the new page This is, what I will not be able to do by myself... Sorry, still I am a newbie so please be patient with me... -- You receive this message as a subscriber of the ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
RE: Re: RE: Submit from one form to Xquery and catch returned xml-output in new formthis is, what I wanted to do..
But can you help me a little bit with it? 1) My forms are ready, my xquery, too.. > Use XPL to do the xquery stuff How? What does happen there? Do I submit my instance to an example.xpl that calls my xquery? Yes the submit you instance and get the XPL to do the xquery 2) > use the xforms:submission to replace the page with the new one How? I mean, I know how to use it to open a new page... But does this all happen in an action or trigger? Well if you have an edit button you would trigger a submission, which would POST your instance to the XPL and then POST the result to the new page, one xforms:submission 3) > The output of the XPL will be passed to the new page Add @src="input:data" to the xforms:instance you want the data stored in This is, what I will not be able to do by myself... Sorry, still I am a newbie so please be patient with me... ______________________________________________________________________ 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 ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: RE: Re: RE: Submit from one form to Xquery and catch returned xml-output in new formstrange..nothing happens and my log does not help...
In my form I have: <xforms:trigger> <xforms:label>Edit</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:send submission="initToEdit"/> <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')"/> <xforms:send submission="editXPL"/> <!--<xforms:send submission="toEditSubmission"/>--> </xforms:action> </xforms:trigger> In the Model: <xforms:submission id="editXPL" action="/2604/editXPL" ref="instance('toEdit')" method="post" replace="none"/> My pageflow: <page path-info="/2604/editXPL"> <action action="xpls/edit.xpl"/> </page> My xpl: <p:config <p:param type="input" name="instance"/> <p:processor name="oxf:xforms-submission"> <p:input name="submission"> <xforms:submission method="post" action="http://localhost:8080/exist/rest/db/dictionary/xquery/edit.xq"/> </p:input> <p:input name="data" href="#instance"/> <p:output name="response" id="response" debug="testEdit"/> </p:processor> </p:config> But my edit.xq does nothing anymore... -- You receive this message as a subscriber of the ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
RE: Re: RE: Re: RE: Submit from one form to Xquery and catch returned xml-output in new formI don’t think you can do two xforms:send, you will need to add
the rest of the action to the xforms-submit-done event of ‘initToEdit’ Your page flow needs to have a model and a view attribute, the
model should be a path to the XPL, the view should be a path to the new page,
which you send your instance ----------------------------------------------- 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: rpuddephatt@... From: masenjabban@...
[mailto:masenjabban@...] strange..nothing happens and my log does not help... In my form I have: <xforms:trigger>
<xforms:label>Edit</xforms:label>
<xforms:action ev:event="DOMActivate">
<xforms:send submission="initToEdit"/>
<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')"/>
<xforms:send submission="editXPL"/>
<!--<xforms:send
submission="toEditSubmission"/>-->
</xforms:action>
</xforms:trigger> In the Model: <xforms:submission id="editXPL"
action="/2604/editXPL" ref="instance('toEdit')"
method="post" replace="none"/> My pageflow: <page path-info="/2604/editXPL"> <action
action="xpls/edit.xpl"/> </page> My xpl: <p:config xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:xforms="http://www.w3.org/2002/xforms"> <p:param
type="input" name="instance"/> <p:processor
name="oxf:xforms-submission"> <p:input
name="submission"> <xforms:submission
method="post" action="http://localhost:8080/exist/rest/db/dictionary/xquery/edit.xq"/> </p:input> <p:input
name="data" href="#instance"/> <p:output
name="response" id="response"
debug="testEdit"/> </p:processor> </p:config> But my edit.xq does nothing anymore...
_______________________________________________________________________ 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 ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: RE: Re: RE: Re: RE: Submit from one form to Xquery and catch returned xml-output in new formAm 21.07.2008 um 12:51 schrieb Ryan Puddephatt: I don’t think you can do two xforms:send, you will need to add the rest of the action to the xforms-submit-done event of ‘initToEdit’Why? When I do this: <xforms:trigger> <xforms:label>Edit</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:send submission="initToEdit"/> <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')"/> <!--<xforms:send submission="editXPL"/>--> <xforms:send submission="toEditSubmission"/> <!--<xforms:send submission="link-edit"/>--> </xforms:action> </xforms:trigger> everything is working... If you would like to write an xpl to submit an instance to an xquery, how does it look like? I think that submitting my instance to my xquery is not working... If I go the old way with the two submissions everything is ok. Maybe my edit.xq does not receive any data... I just don´t know right now how to debug... -- You receive this message as a subscriber of the ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
RE: Re: RE: Re: RE: Re: RE: Submit from one form to Xquery and catch returned xml-output in new formOk if you know that works then thats ok. Your XPL should look something like <p:config xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:xforms="http://www.w3.org/2002/xforms"> <p:param
type="input" name="instance"/> <p:param type=”output” name=”data”/> <p:processor
name="oxf:xforms-submission"> <p:input
name="submission"> <xforms:submission
method="post" action="http://localhost:8080/exist/rest/db/dictionary/xquery/edit.xq"/> </p:input> <p:input
name="data" href="#instance"/> <p:output
name="response" ref="data"
debug="testEdit"/> </p:processor> </p:config> Your page-flow should look like <page path-info="/2604/editXPL" model=”xpls/edit.xpl" view=”pages/newview.xhtml”/> HTH |