Simple repeat in FB

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

Simple repeat in FB

elson
Hi,

Repeats in FB are very useful, but only seem to work with certain rowset-style XML markup, e.g.

<fruits>
  <fruit>
    <name>apple</name>
  </fruit>
  <fruit>
    <name>banana</name>
  </fruit>
  ...
</fruits>

Is it possible (either in the UI, or by editing the source) to make it support something more list-like, e.g.

<fruits>
  <fruit>apple</fruit>
  <fruit>banana</fruit>
  ...
</fruits>

At the moment I cannot see any way of support thing type of repeating markup, any help greatly appreciated.

Steve
Reply | Threaded
Open this post in threaded view
|

Re: Simple repeat in FB

Erik Bruchez
Administrator
Steve,

Form Builder fully controls the XML markup of the form data and
generate things like this:

<form>
    <my-section>
        <my-repeat>
            <my-input/>
        </my-repeat>
        <my-repeat>
            <my-input/>
        </my-repeat>
    </my-section>
</form>

There is a feature, Custom XML, which we wanted to include in 4.0 but
have deferred for now, which could potentially help. But it's not here
yet.

Your bet bet might be to transform the data back and forth between the
FB format and your desired format.

-Erik

On Fri, Dec 7, 2012 at 4:48 AM, elson <[hidden email]> wrote:

> Hi,
>
> Repeats in FB are very useful, but only seem to work with certain
> rowset-style XML markup, e.g.
>
> <fruits>
>   <fruit>
>     <name>apple</name>
>   </fruit>
>   <fruit>
>     <name>banana</name>
>   </fruit>
>   ...
> </fruits>
>
> Is it possible (either in the UI, or by editing the source) to make it
> support something more list-like, e.g.
>
> <fruits>
>   <fruit>apple</fruit>
>   <fruit>banana</fruit>
>   ...
> </fruits>
>
> At the moment I cannot see any way of support thing type of repeating
> markup, any help greatly appreciated.
>
> Steve
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Simple-repeat-in-FB-tp4656088.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Simple repeat in FB

elson
Thanks Erik,

Actually, I noticed that the Bookshelf form in 4.0 M18 has a 'notes' repeat that behaves exactly as I would like, and by editing the source of the XForm a bit I was able to get it to work.

Cheers,
Steve