W3C home > Mailing lists > Public > public-xformsusers@w3.org > November 2016

Repeat processing

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Fri, 18 Nov 2016 22:14:33 +0100
To: "public-xformsusers@w3.org" <public-xformsusers@w3.org>
Message-ID: <op.yq46mjz7smjzpq@steven-aspire-s7>
<instance>
   <data xmlns="">
     <a>1</a>
     <i/>
     <x>1</x>
     <x>2</x>
     <x>3</x>
   </data>
</instance>
<bind ref="i" calculate="../a"/>
<setvalue ref="a" ev:event="xforms-ready">123456789</setvalue>
...
<repeat ref="x" indexref="i">
    <output ref="."/>
</repeat>


The problem here is that indexref is readonly.

So when a (and therefore i) is set out of bounds of the repeat, processing  
states that
  * xforms-scroll-last is sent to the repeat,
  * the repeat index is set to the size of the repeat collection
  * therefore indexref is set to the value of the repeat index.

But that last is not allowed, since i is readonly.

Steven
Received on Friday, 18 November 2016 21:15:13 UTC

This archive was generated by hypermail 2.3.1 : Friday, 18 November 2016 21:15:13 UTC