royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Rovira <carlosrov...@apache.org>
Subject Re: Retrieving a collection of data and reassign the collection to show in a component with Binding
Date Mon, 08 Oct 2018 20:08:05 GMT
Hi Piotr,

Jewel ComboBox uses DataItemRendererFactoryForCollectionView that
implements IDataProviderItemRendererMapper
thanks

El lun., 8 oct. 2018 a las 21:02, Piotr Zarzycki (<piotrzarzycki21@gmail.com>)
escribió:

> Hi Carlos,
>
> Maybe your ComboBox have to use IDataProviderItemRendererMapper ? It's just
> a shot.
>
> Piotr
>
> On Mon, Oct 8, 2018, 8:24 PM Alex Harui <aharui@adobe.com.invalid> wrote:
>
> > How can collectionOfVOs be a Constant when it is being assigned data off
> a
> > network request?
> >
> > -Alex
> >
> > On 10/8/18, 11:19 AM, "Carlos Rovira" <carlosrovira@apache.org> wrote:
> >
> >     When I say this is not working, I mean, I have the data right in
> > place, but
> >     the data provider is empty.
> >
> >     El lun., 8 oct. 2018 a las 20:17, Carlos Rovira (<
> > carlosrovira@apache.org>)
> >     escribió:
> >
> >     > Hi,
> >     >
> >     > I'm retrieving a collection of VOs and storing in a class
> >     >
> >     > something like this
> >     >
> >     > someClass.collectionOfVOs = new ArrayList (event.data as Array);
> >     >
> >     > in the screen code I have:
> >     >
> >     > <j:ComboBox selectedIndex="0">
> >     >       <j:beads>
> >     >            <js:ConstantBinding sourceID="someClass"
> >     >                                sourcePropertyName="collectionOfVOs"
> >     >
> > destinationPropertyName="dataProvider"/>
> >     >      </j:beads>
> >     > </j:ComboBox>
> >     >
> >     > or I could have directly
> >     >
> >     > <j:ComboBox dataProvider="{someClass.collectionOfVOs}">
> >     >
> >     > I have setup
> >     >
> >     > <js:ContainerDataBinding/>
> >     >
> >     > But this is not working, I suppose this is due to a complete
> > reassignment
> >     > of the dataProvider.
> >     >
> >     > I think this worked in Flex, if I can recall right.
> >     >
> >     > Can someone post some solution for this or let me know if see some
> >     > problems in the way I'm creating this?
> >     > Maybe I'm missing something?
> >     >
> >     > thanks
> >     >
> >     >
> >     > --
> >     > Carlos Rovira
> >     >
> >
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&amp;data=02%7C01%7Caharui%40adobe.com%7C6ffbfccdbfea48e49c3808d62d4a8a0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746195526162661&amp;sdata=yZLc63abOJC%2B0q7SFSWhzOV1iiO5o47huqJQOtnDpaY%3D&amp;reserved=0
> >     >
> >     >
> >
> >     --
> >     Carlos Rovira
> >
> >
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&amp;data=02%7C01%7Caharui%40adobe.com%7C6ffbfccdbfea48e49c3808d62d4a8a0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746195526162661&amp;sdata=yZLc63abOJC%2B0q7SFSWhzOV1iiO5o47huqJQOtnDpaY%3D&amp;reserved=0
> >
> >
> >
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message