Comments? Feedback?

This wiki does not yet support public comments (a limitation of Google Sites), so we encourage you to post your comments either:

On Twitter by responding to @orbeon.

On our community mailing list: subscribe sending an email to ops-users-subscribe@ow2.org (content of subject/body doesn't matter), you'll get a response with the email to use to send your message to the community mailing list.

Recent site activity

Importing Data to Form Runner

Excel import

Availability

[SINCE: 2011-05-18]

This is an Orbeon Forms PE feature available in post-Orbeon Forms 3.9 builds.

What it is

This feature allows you to import batches of data from a source Excel spreadsheet to a deployed Form Runner form.

How it works

It's pretty simple!

1. You start the import from the Form Runner import page, accessible from the summary page


2. You select the Excel 2007 file to upload and import


3. Form Runner validates the Excel file and give you the option to add to existing data for the given form, or remove all existing data first


4. Form Runner imports valid data from the Excel file



5. The import is complete!


NOTE: Only the Excel 2007 .xlsx format (Office Open XML) is supported. The older, .xls format is not supported.

Enabling the import button on the summary page

You enable the import button by adding the import token to the oxf.fr.summary.buttons.*.* property. Here for the orbeon/contact form:

<property as="xs:string"
  name="oxf.fr.summary.buttons.orbeon.contact"
  value="new import edit print pdf delete"/>

Mapping between form controls and Excel spreadsheet

A given Excel file contains data for a single Orbeon Forms form.

The spreadsheet must follow this format:
  • only the first sheet is considered
  • the first row is a special header row, where each cell contains an identifier that matches a control name in the given form
  • each subsequent row contains data for a new instance of form data
In your form, you create controls with names that match the names in the first row (header row) of the Excel document.

Here is an example spreadsheet for the sample Orbeon Contact form:


NOTE: Only characters allowed in XML names are allowed as control names in Form Builder. In case your Excel header row requires names with non-XML characters (Form Builder will tell you the name is not allowed), simply replace them by "_" in Form Builder.