Dashboard > Tempo > ... > FAQ > REST call from xForms > View
Tempo Log In   View a printable version of the current page.
REST call from xForms
Added by Nicolas Modrzyk, last edited by Nicolas Modrzyk on Oct 01, 2008

REST call from xForms.

In the xforms model section of the form, you can define a submission, similar to the abstract code below:

<xforms:model schema="form.xform.xsd">
...
<xforms:submission id="fillvalues" method="get" action="http://127.0.0.1:8888/myrestservice" replace="instance" instance="myinstance">
  <xforms:message ev:event="xforms-submit-error">...error message ...</xforms:message>
</xforms:submission>
...
</xforms:model>

You can then use this submission for example at load time, to fill values in your form:

<xforms:action ev:event="DOMActivate">
   <xforms:send submission="fillvalues"/>
</xforms:action>

And the instance will be loaded with the needed data.

There is also a REST section on the Orbeon website, for more information.

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 1.4.1 Build:#212 Jun 02, 2005) - Bug/feature request - Contact Administrators