Section templates

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

Section templates

Reinhardt Willy, Bedag
Section templates

Hi,

I am trying Form Builder (3.8) and I have some questions:

1.      I have a form with a table and cells having numeric values, the last column is the sum of all row cells. Using the form builder, the right way is it to use the grid and add fields on each cell or should I edit the source of form ?

2.      In my table the first row should merge columns. Using the form builder I could merge rows but I didnt find how to merge columns ?

3.      I create section template in which I have two separate grids. When I insert the section template in my form it use only the first grid. Is it a know bug or did I make something wrong ?

Thanks for your answers or advices.      

Willy Reinhardt



--
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: Section templates

Erik Bruchez
Administrator
Willy,

> I am trying Form Builder (3.8) and I have some questions:
>
> 1.      I have a form with a table and cells having numeric values, the last
> column is the sum of all row cells. Using the form builder, the right way is
> it to use the grid and add fields on each cell or should I edit the source
> of form ?

You can create a fixed number of rows in Form Builder and duplicate
the logic for the sum in each line.

This is not optimal of course: Form Runner supports a nice repeater,
which would do that for you, but this is not yet exposed in Form
Builder.

You can update the code to use fr:repeat by hand. See for example this form:

http://github.com/orbeon/orbeon-forms/blob/master/src/resources/forms/orbeon/dmv-14/form/form.xhtml

> 2.      In my table the first row should merge columns. Using the form
> builder I could merge rows but I didn’t find how to merge columns ?

Right, "colspan" is not yet supported in Form Builder! This would be
nice to have…

> 3.      I create section template in which I have two separate grids. When I
> insert the section template in my form it use only the first grid. Is it a
> know bug or did I make something wrong ?

I think this is a bug! Both grids should show. I entered a bug to track this:

http://forge.ow2.org/tracker/index.php?func=detail&aid=315550&group_id=168&atid=350207

-Erik

>
> Thanks for your answers or advices.
>
> Willy Reinhardt
>
> --
> 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