Re: Re: Re: Problems with xforms:repeat and index()

Posted by Markku Laine on
URL: https://discuss.orbeon.com/Problems-with-xforms-repeat-and-index-tp788711p964091.html

Erik,


testxformsrepeatandindex2.jsp (without variable) works perfectly now.  
Thanks! testxformsrepeatandindex1.jsp (with variable), however, still  
does not work as it should. If you delete all items and then insert a  
new item you will see that the newly inserted item is not in the edit  
mode (as it is, and should be, in the example #2).

Regards


-Markku

On 11.12.2009, at 6.00, Erik Bruchez wrote:

> Markku,
>
> I think that now the two methods (variable / no variable) work the
> same. We recently changed the way the index is made available during
> controls construction.
>
> But I still reproduced the issue of the first insert after removing
> all items, and I fixed that:
>
> http://github.com/orbeon/orbeon-forms/commit/3c02a42579cfe4ef3317bc863fa2f7de8f05b465
>
> Please let us know if that works for you!
>
> -Erik
>
> On Mon, Dec 7, 2009 at 2:44 AM, Markku Laine <[hidden email]>  
> wrote:
>> Hi,
>>
>>
>>> It seems that the index() function does not work within the  
>>> xforms:group
>>> ref="..." attribute (see testxformsrepeatandindex2.jsp) in the  
>>> latest
>>> nightly builds. As a work around, you can use xxforms:variable (see
>>> testxformsrepeatandindex1.jsp). However, when you delete all items  
>>> in the
>>> example and then insert a new item the item will not get selected  
>>> (index =
>>> 0). I ever tried to use xforms:setindex but it didn't work.
>>
>> Resurrecting the topic ... just to make sure, is anyone else facing  
>> similar
>> problems with the index() function? Erik, were you able to  
>> reproduce the
>> issue?
>>
>> Kind regards
>>
>>
>> -Markku
>>
>>
>> --
>> 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