pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "A. J." <ozbt...@gmail.com>
Subject Re: Data binding expression with list items
Date Tue, 31 Aug 2010 12:20:05 GMT
ok, looking forward to try this in 2.0

thanks
AJ

On Tue, Aug 31, 2010 at 12:21 PM, Dirk Möbius <dmoebius@scoop-gmbh.de>wrote:

> I think in Pivot 2.0 it would be possible with a little script trick:
>
>  <script>
>    function myListAt(index) {
>      return myObj.myList[index];
>    }
>  </script>
>
>  <TextInput textKey="${myListAt:2}/>
>
> But I guess that you don't want to use a hard wired constant there (don't
> you?), rather something like:
>
>  <TextInput textKey="${myListAt:otherList.selectedIndex}/>
>
> Dirk.
>
>
>
> Greg Brown <gkbrown@mac.com> wrote:
>
>  It isn't currently supported, though it would be trivial to add. I'm
>> curious about the use case, though. It seems a bit fragile to rely on a
>> numeric index, but maybe there is a valid use for it.
>> G
>>
>> On Aug 30, 2010, at 3:33 PM, A. J. wrote:
>>
>>  Hi,
>>>
>>> Is it possible to have binding expressions that refer to list items using
>>> index accessor such as the following one (myList being of type
>>> java.util.List) ?
>>>
>>> ...
>>> <TextInput textKey="myObj.myList[2]"  />
>>> ...
>>>
>>> thanks in advance
>>> AJ.
>>>
>>
>>
>>
>
>
> --
> Dirk Möbius
>
> SCOOP GmbH
> Am Kielshof 29
> D-51105 Köln
> Fon   +49 221 801916-0
> Fax   +49 221 801916-17
> Mobil +49 170 7363035
> www.scoop-gmbh.de
> Sitz der Gesellschaft: Köln
> Handelsregister: Köln
> Handelsregisternummer: HRB 36623
> Geschäftsführer:
> Dr. Oleg Balovnev
> Frank Heinen
> Dr. Wolfgang Reddig
> Roland Scheel
>
>
>

Mime
View raw message