Problem with xforms-ready event and nested submissions

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

Problem with xforms-ready event and nested submissions

Benjamin
Hi,

i have a problem with the xforms-ready event and nested submissions

I try to call a submission "B" in a submission "A" with <xforms:send
submission="B" />. This works fine as long as i use a <xforms:submit
submission="A" >... to call submission 'A'. However, if i call the
submission "A" in a action like this:

<xforms:action id="basic_setup" ev:event="xforms-ready">
    <xforms:send submission="A" />
......

submission "A" works fine, but submisson "B" does not start.

Do i something wrong? Can anyone help me?

Benjamin







--
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: Problem with xforms-ready event and nested submissions

Erik Bruchez-3
If you need the submissions performed sequentially, call submission B
as result of receiving xforms-submit-done on submission A. Something
like:

<xforms:submission id="A" ...>
    <xforms:send ev:event="xforms-submit-done" submission="B"/>
</xforms:submission>

<xforms:send ev:event="xforms-model-construct-done" submission="A"/>
If you need them in parallel:

<xforms:send ev:event="xforms-model-construct-done" submission="A"/>
<xforms:send ev:event="xforms-model-construct-done" submission="B"/>

or:

<xforms:action ev:event="xforms-model-construct-done">
    <xforms:send submission="A"/>
    <xforms:send submission="B"/>
</xforms:action>

(Here I use xforms-model-construct-done as that usually has
performance benefits vs. xforms-ready.)

Note that you have to put these event handlers under the <xforms:model> element.

-Erik

On Mon, Feb 15, 2010 at 1:42 AM, Benjamin Jehle
<[hidden email]> wrote:

> Hi,
>
> i have a problem with the xforms-ready event and nested submissions
>
> I try to call a submission "B" in a submission "A" with <xforms:send
> submission="B" />. This works fine as long as i use a <xforms:submit
> submission="A" >... to call submission 'A'. However, if i call the
> submission "A" in a action like this:
>
> <xforms:action id="basic_setup" ev:event="xforms-ready">
>   <xforms:send submission="A" />
> ......
>
> submission "A" works fine, but submisson "B" does not start.
>
> Do i something wrong? Can anyone help me?
>
> Benjamin
>
>
>
>
>
>
>
> --
> 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