Hi Gummybears,

There is one approach you could use to solve this problem:

As soon as the application loads, call the webservice that will populate the
dataprovider of the combo box. And till you get the result, you should
probably not allow the user to interact with the application. Once the
dataprovider is set, you wont get the null-pointer error.

If the webservice call is dependant on the user's selection, then you should
populate the form in the result handler of the webservice.

Let me know if none of the above solutions is feasible.

Regards,
Venkat
www.venkatv.com


On Fri, Jan 2, 2009 at 12:46 PM, kundan singh <[email protected]>wrote:

> Hi
>
> I think u are setting the index of comboBox when the array collection is
> empty, that is befor data comes to array collection.
>
> so make a event listener "change event "for array collection  and make a
> loop for mataching data of the dataprovider. once the data is matched , set
> the index value of comboBox and remove the listener.
>
> Regards,
> Kundan
>
> On Thu, Jan 1, 2009 at 11:38 AM, Jitendra Jain <
> [email protected]> wrote:
>
>> How you are binding the data provider?. If possible please paste some code
>> so that others can answers. Your questions are not clear enough to answer.
>>
>>
>> Regards,
>> JJain
>>
>>
>>   >>
>>

--~--~---------~--~----~------------~-------~--~----~
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