Replace instance through oxf:xforms-server processor

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

Replace instance through oxf:xforms-server processor

Jasper.Linthorst
Replace instance through oxf:xforms-server processor

Hi Alex/Erik,
Do you know if it is possible to instruct the xforms-server processor to place/insert an xml document into an instance within an xform?

So, is there a way to do someting like this:

<xxforms:event-request xmlns:xxforms="http://orbeon.org/oxf/xml/xforms">
    <xxforms:static-state>pers:396B4A13-CCD7-D734-8ABA-79879A70DFCB</xxforms:static-state>
    <xxforms:dynamic-state>pers:B83B00BA-75DA-3E8D-4F04-7C1331364D9B</xxforms:dynamic-state>
    <xxforms:action>
        <xxforms:event name="xxforms-value-or-activate" source-control-id="SOME-INSTANCE-ID">
            <some-xml-doc>some-value</some-xml-doc>
        </xxforms:event>
    </xxforms:action>
</xxforms:event-request>

To put things in perspective: we're trying to have multiple xforms on one page which can subscribe on eachothers xml instance data (in no-script mode).

Thanks in advance!

Jasper



--
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: Replace instance through oxf:xforms-server processor

Erik Bruchez-3
Jasper,

Not sure I understand all the implications, but it seems a little
harder than that. However, from XForms, you can access request or
session data with the xxforms;get-request-attribute()
xxforms;get-session-attribute(). Doc:

http://www.orbeon.com/ops/doc/reference-xforms-functions

Maybe this could be a better way for those forms to exchange data?

-Erik

On Mon, Oct 12, 2009 at 7:13 AM, Jasper Linthorst
<[hidden email]> wrote:

> Hi Alex/Erik,
> Do you know if it is possible to instruct the xforms-server processor to
> place/insert an xml document into an instance within an xform?
>
> So, is there a way to do someting like this:
>
> <xxforms:event-request xmlns:xxforms="http://orbeon.org/oxf/xml/xforms">
>
> <xxforms:static-state>pers:396B4A13-CCD7-D734-8ABA-79879A70DFCB</xxforms:static-state>
>
> <xxforms:dynamic-state>pers:B83B00BA-75DA-3E8D-4F04-7C1331364D9B</xxforms:dynamic-state>
>     <xxforms:action>
>         <xxforms:event name="xxforms-value-or-activate"
> source-control-id="SOME-INSTANCE-ID">
>             <some-xml-doc>some-value</some-xml-doc>
>         </xxforms:event>
>     </xxforms:action>
> </xxforms:event-request>
>
> To put things in perspective: we're trying to have multiple xforms on one
> page which can subscribe on eachothers xml instance data (in no-script
> mode).
>
> Thanks in advance!
>
> Jasper
>
> --
> 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