Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Since version 1.53.4 we have introduced couple of experimental APIs which help you to make a bridge between ConfiForms web-services backed fields and Excel files attached to your Confluence page.


3 services:


These 2 APIs are available at the following URLs:


Services expect/support the following parameters:

ParameterDescriptionTypeRequired
attachmentIdAttachment ID of the Excel file attachment to use as sourceNumericYes
skipRowsNumber of rows to skip (from the top). Defaults to 0 (rows to skip, from the top of the sheet)NumericNo
idCellNumWhich column to use as IDNumericNo
labelCellNumWhich column to use as labelNumericNo

lookupValue

Since 2.27.21 

Can supply a lookup value for the service to lookup. The subset returned will be filtered to match (as substring) the given valueTextNo

lookupField

Since 2.27.23

Limiting the matching logic to specific field (cell)

Example: cell1 to limit to cell1 value only. If not specified then the match for given lookupValue is done against the whole row (all cells)

TextNo

exactMatch

Since 2.27.24

You can set the search to use "exact match", by default (when exactMatch is unspecified or false) the search is done as text substring match (case insensitive)

BooleanNo
Info

Column and rows numbering starts with 0

Warning

NB! Only the first sheet

...

from Excel file is currently supported!


Examples:

https://YOUR_CONFLUENCE_SERVER/ajax/confiforms/rest/excel-2json.action?attachmentId=2195459&skipRows=1&idCellNum=0&labelCellNum=1

...

ConfiForms Form Definition
formNamemyform

|cell1|cell2myvaluesMy excel valuesd555581b9265e2784b3ec206eb4eaf6ewsselecttrue


Configuration for ConfiForms looks like this

...

ConfiForms (FormView) Registrations Control
embeddedtrue


All the registrations so far (and yes, we can access ANY other field, like cell3 in our views, see below)

ConfiForms TableView
formNamemyform

myvalues

myvalues.idmyvalues.id

myvalues.cell1myvalues.cell1

myvalues.labelmyvalues.label

myvalues.cell3myvalues.cell3