Simple way to set a ref-value by xquery-result

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

Simple way to set a ref-value by xquery-result

Marcus-2
Hi,
me again.

At least i don't know if there is a simpler way, but i hope so.
Actually my way to do this might be:

1. Send Submission that query the db and writes back the results into an
instance.
2  Set Value of another instance with the query-result.

Is there a way to do something like:
<xforms:setvalue ref="xxforms:instance('control-instance')/max-nr"
value="{call an xquery and return the result here}" />
So that i only need one line without calling an extra Submission? I
think a read about an xforms:call-xpl - would that be a proper way?

Regards, Marcus


--
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: Simple way to set a ref-value by xquery-result

Erik Bruchez
Administrator
Yes, you can call a pipeline from an XPath expression with the  
xxforms:call-xpl() function. If that pipeline handles the call to  
eXist then that will work. It is not necessarily less work though.

-Erik

On Jul 15, 2008, at 8:54 AM, Marcus wrote:

> Hi,
> me again.
>
> At least i don't know if there is a simpler way, but i hope so.
> Actually my way to do this might be:
>
> 1. Send Submission that query the db and writes back the results  
> into an instance.
> 2  Set Value of another instance with the query-result.
>
> Is there a way to do something like:
> <xforms:setvalue ref="xxforms:instance('control-instance')/max-nr"  
> value="{call an xquery and return the result here}" />
> So that i only need one line without calling an extra Submission? I  
> think a read about an xforms:call-xpl - would that be a proper way?
>
> Regards, Marcus
>
> --
> 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