Access XForms instance

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

Access XForms instance

trungutt
Hello All, I have a little question....

How can I access the instance's values from a javascript function in real time
I know I can access the values via XForms input element, like

http://wiki.orbeon.com/forms/doc/developer-guide/xforms-javascript-integration

I've alreay read

http://discuss.orbeon.com/Accessing-XForms-instance-from-JavaScript-read-only-td2172760.html

but when I update the XML instance and get it printed (by ORBEON.xforms.Document.getValue(idControl)), it shows just the old value and not the new value that are already updated.


Thank you all!
Reply | Threaded
Open this post in threaded view
|

Re: Access XForms instance

Erik Bruchez
Administrator
To clarify: you can only know a control's value, not the instance values. Instances currently stay on the server.

But you are saying you are not getting the correct values with ORBEON.xforms.Document.getValue()? In what kind of scenario?

-Erik