Setting the value of a from from input:instance - Ignore last message, read this

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

Setting the value of a from from input:instance - Ignore last message, read this

Waseem Quraishi
Hello all,

Sorry about the double post (Gmail accidentally sent the message instead of save). When my xforms view loads, I want to set the value of a form element to the value currently stored in doc('input:instance').  I've tried various combinations but have had no luck.  Here's a quick overview.

1.  when my page is loaded, an URL parameter of return url configures the location to return the user to once the complete button is pressed.
2.  the return-url is grabbed using a default submission set up in page-flow.xml .  this value is stored in doc('input:instance').  when i output the following:
<xsl:value-of select="doc('input:instance')/*"/> the return-url is displayed.

3.  what i'm trying do is take the value stored in doc('input:instance') and populate an existing parameters-instance document with the return-url value.

I've tried using xforms:setvalue and xforms:action but have had no luck.  Your help is appreciated.  Please let me know if I can elaborate on any of the above.

Thanks,
W




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Setting the value of a from from input:instance - Ignore last message, read this

Hank Ratzesberger

If I understand, you are attempting to use XSLT to get this value, but
XSLT is completed by page flow epilogue before XForms engine is
initialized.

What you can do is initialize an instance, which is available
thereafter to the XForms engine.

<xforms:instance id="document-infos-instance"><!-- This is where the XML
document produced by the page model is included --><xsl:copy-of
select="doc('input:instance')"/></xforms:instance>


http://www.orbeon.com/ops/doc/reference-xforms-ng#xforms-instance-initialization

--Hank Ratzesberger

> Hello all,
>
> Sorry about the double post (Gmail accidentally sent the message instead
> of
> save). When my xforms view loads, I want to set the value of a form
> element
> to the value currently stored in doc('input:instance').  I've tried
> various
> combinations but have had no luck.  Here's a quick overview.
>
> 1.  when my page is loaded, an URL parameter of return url configures the
> location to return the user to once the complete button is pressed.
> 2.  the return-url is grabbed using a default submission set up in
> page-flow.xml .  this value is stored in doc('input:instance').  when i
> output the following:
> <xsl:value-of select="doc('input:instance')/*"/> the return-url is
> displayed.
>
> 3.  what i'm trying do is take the value stored in doc('input:instance')
> and
> populate an existing parameters-instance document with the return-url
> value.
>
>
> I've tried using xforms:setvalue and xforms:action but have had no luck.
> Your help is appreciated.  Please let me know if I can elaborate on any of
> the above.
>
> Thanks,
> W
>




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws