Repeat grid

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

Repeat grid

akail
Hello,

It is possible in Orbeon create repeat grid which would be with conditional. For example: in previous field I write number "3" so the repeat grid automatcally has three repetition?
Jez
Reply | Threaded
Open this post in threaded view
|

Re: Repeat grid

Jez
Reply | Threaded
Open this post in threaded view
|

Re: Repeat grid

Alessandro  Vernet
Administrator
In reply to this post by akail
Hi Akail,

The short answer is "no", at least not without editing the form and writing custom XForms. But if you need this, and are OK editing XForms, just let us know and we'll do our best to help.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Repeat grid

akail
Yes, it is need for me and I would be very thankful if you help me. For me doesn't matter what method would be use, I agree with anything.
Reply | Threaded
Open this post in threaded view
|

Re: Repeat grid

Erik Bruchez
Administrator
And what would be the logic if the user modifies the value afterwards? I.e. enter 3, tab out, grid has 3 repetitions. User adds data, in grid, maybe add/remove rows, goes back to field, enters a different number?

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: Repeat grid

akail
The logic is:
if he enter 3, then grid has 3 repetition
if he edit that field and enter 1, then grid has 1 repetition.

number of grid repetitions related with entered value.
Reply | Threaded
Open this post in threaded view
|

Re: Repeat grid

Erik Bruchez
Administrator
Here is a working example:

https://gist.github.com/ebruchez/7439769

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: Repeat grid

Erik Bruchez
Administrator
And I updated the StackOverflow question as well with some explanations:

http://stackoverflow.com/questions/19811494/orbeon-form-builder-limit-repeating-element-based-on-field-value/19941118

-Erik