Hi Ashkar,

It was happening due to sequence of Events in MATE framework. ComboBox issue is 
resolved. Though working but I am still not figure out how to handle sequencing 
of events in MATE.

Thanks anyway for the follow up.
Arshad

--- In flexcoders@yahoogroups.com, Akshar Kaul <akshar.k...@...> wrote:
>
> can you share the whole code or some sample code.
> 
> Akshar Kaul
> 
> 
> On Tue, Jun 1, 2010 at 22:31, md_ars <mdar...@...> wrote:
> 
> >
> >
> > Thanks Ashkar for the reply,
> > I had already tried but it didn't work
> >
> >
> > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, Akshar
> > Kaul <akshar.kaul@> wrote:
> > >
> > > try using formType.refresh() after you modify your array collection.
> > >
> > > Akshar Kaul
> > >
> > >
> > > On Sat, May 29, 2010 at 03:49, md_ars <mdars06@> wrote:
> > >
> > > >
> > > >
> > > > I have a Combobox and its dataprovide is an ArrayCollection(formType)
> > which
> > > > is being populate from XMLLIst(formXMLListB) as given below
> > > >
> > > > public function getForms(vForm:Object):void
> > > > {
> > > > formXMLListB = vForm.mtResult.tuples.item.tuple; // resultFormat=e4x
> > > > var i:int = 0;
> > > > formType.removeAll();
> > > > for(i=0; i<formXMLListB.length(); i++) {
> > > > if (formXMLListB[i].item..stringValue[2] == 'FORM_TYPE'){
> > > > formType.addItem({label:formXMLListB[i].item.stringValue[0].toString(),
> > > > data:formXMLListB[i].item.stringValue[1].toString()
> > > > }
> > > > );
> > > > }
> > > > }
> > > >
> > > > For some reason combobox is not populate eventhough I can see the data
> > in
> > > > dataprovider when run with debugger. The formType is [Bindable]
> > variable.
> > > >
> > > > <mx:ComboBox id="frmType" x="258" y="124" dataProvider="{formType}"
> > > > labelField="label" width="281" />
> > > >
> > > > It works fine when I define a dataprovider with static values.
> > > >
> > > > Any suggestions?
> > > >
> > > > Thanks
> > > > Arshad
> > > >
> > > >
> > > >
> > >
> >
> >  
> >
>


Reply via email to