I put this

[Bindable]
>  var menikat:ArrayCollection = new ArrayCollection();
>
at the beginnig of scritpt part, and
this

menikat.addItemAt(element,i);


 for dataProvide of repeater
but no result.

Where I make mistake, should I exclude from function this part
var menikat:Array = new Array;

Or can I pass pure arrayCollection string from eventResult?

thx






On Oct 27, 8:10 am, Sampath Kumar <[email protected]> wrote:
> [Bindable]
>  var menikat:ArrayCollection = new ArrayCollection();
>
>  menikat.addItemAt(element,i);
>
>
>
> On Tue, Oct 27, 2009 at 12:08 PM, explorer <[email protected]> wrote:
>
> > to try to return ArrayCollection or ... please give me more
> > information, thank you
>
> > On Oct 27, 6:47 am, Sampath Kumar <[email protected]> wrote:
> > > Hi,
>
> > > You cannot use [Bindable] with an Array. Try to use an arraycollection
> > > instead of an array and make it Bindable. This should solve your problem.
>
> > > Sampath
>
> > > On Tue, Oct 27, 2009 at 2:48 AM, explorer <[email protected]> wrote:
>
> > > > Hello I have app. where I use creationComplete="meniGenerator()". This
> > > > function, use RemotObject and retrive list of category from database -
> > > > this works fine.
>
> > > > I get resault from PHP in form of ArrayCollection (collection of
> > > > objects) then I use this function
>
> > > >        public function getListaHandler(evt:ResultEvent):void
> > > >                {
>
> > > >                meniji = new ArrayCollection(
> > ArrayUtil.toArray(evt.result)
> > > > );
> > > >                var max:int = evt.result.length;
> > > >                var menikat:Array = new Array;
>
> > > >                for (var i:String in meniji)
> > > >                        {
> > > >                        var element:String = meniji[i].Ime;
> > > >                        menikat[i] = element;
> > > >                        }
> > > >                        trace(menikat);  // this get me list of values
> > that
> > > > I need
> > > >                }
>
> > > > Now I need to bind this menikat array as dataProvider of repeater
> > > > component, but no luck. Any idea what I can do, classical approach
> > > > using just  [Bindabe]
>
> > > > I now that Repeater is component that can efect whole application, but
> > > > this will generate max 6 button for app menu.
>
> > > > Thx for help- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to