Hi Shannon,
Set a breakpoint right after you cast the result to the
array
collection and inspect the array contents in debug mode. Check to
see if the array looks correct and what the dataField names are
exactly.
If everything looks good, use the same dataField names for
the coulmns. It
does look like you have data.
-TH
--- In [EMAIL PROTECTED]ups.com,
"Shannon Hicks" <[EMAIL PROTECTED]> wrote:
>
> The problem is I'm
trying to get data from a query returned by a
CFC into a
> datagrid.
Before, I was having problems getting data back.
>
> Now I've got
the data back, and it won't display (I was getting an
empty
>
datagrid). So, I removed my user-defined columns, to see what was
coming
> back, and the result is:
>
> FilterFunction,
length, list, sort, source
> HYPERLINK
> "http://work.iotashan.com/hlstatsx/hlstatsx.html"http://work.iotash
an.com/hl
>
statsx/hlstatsx.html
>
> Those are not the columns of the
query... I'm guessing they're
properties of
> the ArrayCollection, or
maybe even the datagrid itself.
>
> Shan
>
>
>
_____
>
> From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
> Behalf Of Tracy Spratt
> Sent: Thursday, June 22, 2006 11:39
AM
> To: [EMAIL PROTECTED]ups.com
>
Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Noob binding
question
>
>
>
>
> "When I remove my
columns from the datagrid, the datagrid shows
these
> columns from the
dataprovider:" I do not understand this. Did I
miss
> something
in a previous post? Can you re-phrase the problem?
>
>
Tracy
>
> _____
>
> From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
> Behalf Of Shannon Hicks
> Sent: Thursday, June 22, 2006 12:15
PM
> To: [EMAIL PROTECTED]ups.com
>
Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Noob binding
question
>
> Oh... URL to the problem:
>
>
HYPERLINK
> "http://work.iotashan.com/hlstatsx/hlstatsx.html"http://work.iotash
an.com/hl
>
statsx/hlstatsx.html
>
> ShanHYPERLINK "http://work.iotashan.com/"
>
> _____
>
> From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
> Behalf Of Shannon Hicks
> Sent: Thursday, June 22, 2006 10:23
AM
> To: [EMAIL PROTECTED]ups.com
>
Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Noob binding
question
>
> I did the changes you suggested, and I can
successfully make the
request and
> get the response back.
>
> Unfortunately, it looks like there's something wrong with my
>
ArrayCollection.... When I remove my columns from the datagrid,
the
datagrid
> shows these columns from the dataprovider:
>
>
FilterFunction, length, list, sort, source
>
> *now* what'd I do
wrong? :)
>
> Shan
>
> _____
>
> From:
[EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
> Behalf Of Tim Hoff
> Sent: Wednesday, June 21, 2006 10:03
AM
> To: [EMAIL PROTECTED]ups.com
>
Subject: [Junk E-Mail - LOW] [flexcoders] Re: Noob binding question
>
> Hi Shannon,
>
> Here's a couple things that might get you
moving forward.
>
> First, add a fault handler to your RPC, to see
if the CFC result
is getting
> through:
>
>
fault="Alert.show(event.fault.faultstring, 'Error');"
>
> And, some subtle changes to your functions:
>
> private
function appInit():void
> {
>
cfcServer.getServerInfo.send();
>
cfcServer.getServerLoad.send();
> }
>
> function
serverInfoResult(event:ResultEvent):void
> {
> var
serverInfoDataArray : Array =
>
mx.utils.ArrayUtil.toArray(event.result);
> serverInfoData = new
ArrayCollection
(serverInfoDataArray);
> }
>
>
Finally, check to see if the fields that you are binding to the
DataGrid
> columns are syntactically the same as the CFC query.
Someone
earlier
> suggested using all CAPS for the field names. But, I
was under the
> impression that they were case-sensitive.
>
>
Besides that, It looks like it should work. Good luck.
> -TH
>
>
> --- In [EMAIL PROTECTED]ups.com,
"Shannon Hicks" <shan@> wrote:
> >
> > I've racked my
brain, and searched all the documentation I could
find, but
> >
seem to be having a problem binding results from a CFC query to
flex
>
> objects...
> >
> > I know I'm doing the chart all wrong,
but I tried binding to a
datagrid,
> and
> > I don't see
what's wrong there. I can confirm that the CF server
is
>
getting
> > the request, and is sending back the proper number of
rows.
> >
> > Here's the app I've been toying with:
>
>
> > HYPERLINK
> >
> "http://flex.work.iotashan.com/hlstatsx/hlstatsx.html"http://flex.w
ork.iotas
> >
han.com/hlstatsx/hlstatsx.html
> >
> > You can view
the source on it.
> >
> > Thanks for the help,
> >
Shan
> >
> >
> >
> > --
> > No
virus found in this outgoing message.
> > Checked by AVG Free
Edition.
> > Version: 7.1.394 / Virus Database: 268.9.2/370 - Release
Date:
6/20/2006
> >
>
> --
> No virus found in
this incoming message.
> Checked by AVG Free Edition.
> Version:
7.1.394 / Virus Database: 268.9.2/370 - Release Date:
6/20/2006
>
> --
> No virus found in this outgoing message.
> Checked by
AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.9.2/372 -
Release Date:
6/21/2006
>
> --
> No virus found in this
incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394
/ Virus Database: 268.9.2/372 - Release Date:
6/21/2006
>
>
--
> No virus found in this outgoing message.
> Checked by AVG Free
Edition.
> Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date:
6/21/2006
>
>
>
>
> --
> No virus
found in this incoming message.
> Checked by AVG Free Edition.
>
Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date:
6/21/2006
>
>
>
> --
> No virus found in
this outgoing message.
> Checked by AVG Free Edition.
> Version:
7.1.394 / Virus Database: 268.9.2/372 - Release Date:
6/21/2006
>