I did some more testing to figure out what was causing this to
work/not work.

What I found is that if the evt.result is a mysql/mysqli result set,
it fails to load data sent.  However if you put the mysql data into a
separate array, and return that array.  The data shows up.

However if you set the NewEntryArrayCollection up as so:
ac = new NewEntryArrayCollection (evt.result.source as Array );

It will accept a mysql/mysqli result set.

This has cost me 2 days, but now I know and now other people will know
as well.

HTH,
-David

--- In [email protected], "David C. Moody" <[EMAIL PROTECTED]> wrote:
>
> Well I came in this morning and was beginning to start debugging and I
> don't believe it but the stupid thing is working now?!?!?!?
> 
> Here's what my code ended up being:
> 
> private function generateObject():Object {
>       return { ap_trans: "" }
> }
> 
> private function isObjectEmpty(obj:Object):Boolean {
>       return obj.ap_trans == "";
> }
> 
> private function gotCheckData(evt:ResultEvent):void {
>       ac = new NewEntryArrayCollection (evt.result as Array );
>       ac.factoryFunction = generateObject;
>       ac.emptyTestFunction = isObjectEmpty;
>       ckData.dataProvider = ac;
>       //ckData.dataProvider = evt.result;
> }
> 
> Thanks for your help Alex, I really don't know what caused it to start
> working this time, but it did.
> 
> -David
> 
> --- In [email protected], "Alex Harui" <aharui@> wrote:
> >
> > Debug into it.  A breakpoint in makeRowsAndColumns and check the
> > .collection to see what's in it.
> > 
> >  
> >
>


Reply via email to