Re: Repeat with automatic controls

Mike,

Agreed, and there is a number of features which might be useful on a
repeat. In our implementation, we have a grid component which supports
quite a number of configuration attributes, including min/max, passing
a template, constraining the first rows of the repeat to remain
frozen, constraints on deletion, and more:

    http://doc.orbeon.com/form-runner/component/grid.html

So for XForms, we'll have to decide if we go ahead with this
suggestion, and how far we go.

-Erik

On Wed, Sep 7, 2016 at 11:39 AM, michael odling-smee
<michael.odling-smee@xml-solutions.com> wrote:
> Also...
>
> min / max items required.
>
> Regards,
>
> Mike
>
> On 7 September 2016 at 13:38, Philip Fennell <Philip.Fennell@marklogic.com>
> wrote:
>>
>> Hello Stephen,
>>
>> Would it be ‘gilding the lily’ to also considered ‘insert-before-index’,
>> ‘insert-after-index’ and ‘delete-at-index’?
>>
>>
>> Regards
>>
>> Philip
>>
>> On 07/09/2016 13:00, "Steven Pemberton" <steven.pemberton@cwi.nl> wrote:
>>
>>     One of the remaining issues is what to do (if anything) with the issue
>> of
>>     automatically supplying insert/delete controls in repeat controls.
>>
>>     Ideally it would be great if without having to write much extra, you
>> got
>>     some way or another of deleting and inserting items in the bound list,
>>     without preventing you from adding controls yourself when necessary.
>>
>>     For backwards compatibility, an unadorned <repeat> should behave the
>> same
>>     as now (at least there should be no visible extra controls. This
>> doesn't
>>     need to stop an implementation from allowing, for instance,
>> right-click
>>     actions).
>>
>>     For data consistency reasons, there also needs to be a way to say:
>> only
>>     insert at the start; only delete at the start; only insert at the end;
>>     only delete at the end; no insertions; no deletions.
>>
>>     Strawman examples:
>>       <repeat actions="insert delete" ref="list/oranges">
>>        ...
>>       </repeat>
>>
>>       <repeat actions="insert-start delete-end" ref="events/dates">
>>        ...
>>       </repeat>
>>
>>     The absence of an action would mean that it would not be
>> (automatically)
>>     possible, though the form author could still add controls as needed.
>>
>>     Steven
>>
>>
>>
>
>
>
> --
> --
> Michael Odling-Smee | mike@xml-solutions.com | m: +44 (0) 7946 512 754 |
> www.xml-solutions.com
>
> This is a PRIVATE message. If you are not the intended recipient, please
> delete without copying and kindly advise us by e-mail of the mistake in
> delivery. NOTE: Regardless of content, this e-mail shall not operate to bind
> XML Solutions ltd to any order or other contract unless pursuant to explicit
> written agreement or government initiative expressly permitting the use of
> e-mail for such purpose.
>
> Address: XML Solutions ltd, 30 Claremont Road, Headingley, Leeds, LS6 4EB.
> UK. Registered Company Number: 6233174

Received on Thursday, 8 September 2016 00:21:28 UTC