How to load initial value to embedding form

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

How to load initial value to embedding form

Eddie
This post was updated on .
Hi,

I am using orbeon form 4.7 version and embedded to form to my java application.

Also use with oracle database instead of the default one.

I have followed to http://wiki.orbeon.com/forms/how-to/logic/load-initial-form-data

and write the following code :

request.setAttribute("my-user-data", myDataAsXML)

<xf:insert ev:event="xforms-model-construct-done"
               nodeset="instance('user-data')"
               origin="xxf:get-request-attribute('my-user-data')"/>


But it is still not work.

What ways I should do or anything I missed ?  
Reply | Threaded
Open this post in threaded view
|

Re: How to load initial value to embedding form

Hank Ratzesberger-3
Hi Eddie,

Are you able to use the XForms Debugger and/or watch the server log?

 o The nodeset attribute could be "missing its target"
 o The myDataAsXML is improperly formed.

And just to be sure, you are trying to integrate to your own Java class -- I've done this a while ago, ideally you never need to or you can put your code into something like a micro service and let JAXB or Spring handle the mapping to XML..

Oh, and did you enable the XForms filter in your web.xml?

Cheers,
Hank



On Wed, Sep 23, 2015 at 12:57 AM, Eddie <[hidden email]> wrote:
Hi,

I am using orbeon form 4.7 version and embedded to form to my java
application.

I have followed to
http://wiki.orbeon.com/forms/how-to/logic/load-initial-form-data
<http://wiki.orbeon.com/forms/how-to/logic/load-initial-form-data>

request.setAttribute("my-user-data", myDataAsXML)

<xforms:insert ev:event="xforms-model-construct-done"
               nodeset="instance('user-data')"
               origin="xxforms:get-request-attribute('my-user-data')"/>


But it is still not work.

What ways I should do or anything I missed ?

--
View this message in context: http://discuss.orbeon.com/How-to-load-initial-value-to-embedding-form-tp4660496.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].



--
Hank Ratzesberger
XMLWerks.com

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: How to load initial value to embedding form

dmz1970
In reply to this post by Eddie
Somebody should fix the broken links to "Run this example in the XForms Sandbox" on the wiki page referenced below.

Eddie wrote
Hi,

I am using orbeon form 4.7 version and embedded to form to my java application.

Also use with oracle database instead of the default one.

I have followed to http://wiki.orbeon.com/forms/how-to/logic/load-initial-form-data

and write the following code :

request.setAttribute("my-user-data", myDataAsXML)

<xf:insert ev:event="xforms-model-construct-done"
               nodeset="instance('user-data')"
               origin="xxf:get-request-attribute('my-user-data')"/>


But it is still not work.

What ways I should do or anything I missed ?
Reply | Threaded
Open this post in threaded view
|

Re: How to load initial value to embedding form

Alessandro  Vernet
Administrator
Daniel,

Wow, that is an old page. But I just updated the link; thank you for letting us know.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet