If you are pulling in data from a server (particularly xml data), flex
converts what you need to be an ArrayCollection into an ObjectProxy
instead.  I always try to put a deserialization layer between where I
get the data an where I use it.


                                        //if there are more than one param, we 
already have an array collection
                                        if( 
configVO.configXML.parameters.parameter is ArrayCollection ) {
                                                aParam = 
configVO.configXML.parameters.parameter
                                        } else if( 
configVO.configXML.parameters.parameter is ObjectProxy ){
                                                //only one param--create array 
collection
                                                aParam = new ArrayCollection();
                                                aParam.addItem( 
configVO.configXML.parameters.parameter );
                                        }
                                        
                                

On Thu, Mar 12, 2009 at 9:43 AM, Frank Griffin <[email protected]> wrote:
> Good Morning,
>
>
>
> I have an array that is the dataProvider to a DataGrid and under all but one
> circumstance all is well. Where I am having a problem is where there is only
> one record in the array. If there are at least two records both appear in
> the DataGrid but if there is only one record no data appears in the
> DataGrid.
>
>
>
> Can someone point me to the documentation and or an example of where this is
> handled?
>
>
>
>
>
> Thanks!
>
>
>
> Frank
>
> -------------------------------------------------------------
> To unsubscribe from this list, simply email the list with unsubscribe in the
> subject line
>
> For more info, see http://www.affug.com
> Archive @ http://www.mail-archive.com/discussion%40affug.com/
> List hosted by FusionLink
> -------------------------------------------------------------



-- 
Scott Talsma
CTO, echoEleven


-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------


Reply via email to