Login  Register

Re: Re: Re: form builder/runner repeats

Posted by Frank on Dec 20, 2010; 4:32am
URL: https://discuss.orbeon.com/form-builder-runner-repeats-tp3091943p3095095.html

Erik, Arlo,

Thanks for the advice/update. Now this may be a stupid question, but how do you edit the form outside of form builder.

Can I assume that you:

1) create the basic form using form builder

2 ) find the form definition within the internal exist db - eg:

                get http://localhost:8080/orbeon/exist/rest/orbeon/builder/data/ad635079800cec82339cc90d8b5cc208/data.xml

3) edit the form using any xml editor adding fr:repeat etc.

4) put the form back into exist (rest url as in step 1)

5) Continue to edit the form using form builder, publish and run as normal?

Is this right? or am I missing something?

Thanks again,
Frank

On 18/12/2010, at 12:38 PM, Erik Bruchez wrote:

> Frank, Arlo:
>
> We really would like Form Builder to support repeats, but haven't
> gotten to it yet.
>
> There is an fr:repeat construct which you can place by hand, and Form
> Builder tries to keep that around (at least with nightly builds). For
> example:
>
> https://github.com/orbeon/orbeon-forms/blob/master/src/resources/forms/orbeon/bookshelf/form/form.xhtml
> https://github.com/orbeon/orbeon-forms/blob/master/src/resources/forms/orbeon/dmv-14/form/form.xhtml
>
> -Erik
>
> On Fri, Dec 17, 2010 at 11:12 AM, Arlo White <[hidden email]> wrote:
>> I experimented with source changes a little. Say you make a change in the
>> source and then go back to the Builder and change a label or add another
>> control. The Builder is pretty intelligent about only changing what it needs
>> to and not losing your source changes. However, I did notice that changing
>> control names is a bit more destructive. So it's a good idea to have your
>> control names picked before editing sections related to those controls.
>>
>> I haven't experimented with repeats. I imagine you won't see your controls
>> within the repeat in the builder but will see them when you render the
>> xform.
>>
>> A guide on best practices for editing xforms source while still using the
>> builder would be nice. I haven't seen any documentation on how the Builder
>> does xform updates and what dangers there are in editing the source and then
>> using the Builder again.
>>
>> On 12/16/2010 04:32 PM, Frank wrote:
>>>
>>> Hi all,
>>> I have been using orbeon xforms for a while but have only just started
>>> looking at form builder/runner.
>>>
>>> I see that form builder seems good at developing simple forms but does not
>>> have ability to include repeating items.
>>> The bookshelf example has repeats. How is this done? Can forms developed
>>> within form builder be modified outside of form builder
>>> to include repeated data and then published to form runner? Is there any
>>> doco for this?
>>>
>>> Thanks,
>>> Franco
>>>
>>>
>>
>>
>>
>> --
>> 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


--
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