Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
hhr_jb #1
CFGrid Not Populatin
Can someone please help. I'm creating a flash form and trying to query mysql
database and displaying the data inside of the data grid. I get all the column
names, but the data is not populating. Here's my code.
<Cfformgroup type="horizontal">
<cfquery name="Lookup" datasource="Tracker">
Select * from Advertising where Month="01" and Year="2006"
</cfquery>
<CFgrid name="Jan" Query="Lookup">
<CFgridcolumn name="Site" Header="Site">
<CFgridcolumn name="Month" Header="Month">
<CFgridcolumn name="Day" Header="Day">
</CFgrid>
</cfformgroup>
Thanks
hhr_jb Guest
-
cfgrid
I use a ldap to populate my cfgrid. Therefore, I do not use any cfcolumns within the cfgrid. How would I adjust the widths of the columns to fit... -
cfselect in cfgrid
Does anyone know how to place a cfselect element in a cfgrid or if it is even possible? I need an editable grid. It would be ideal if one of the... -
Flash CFGRID
I'm unable to update a table when using the <cfgridupdate> tag. My <cfgrid> is correctly populated with a query and I can change information on the... -
<CFGRID>
I'm experiencing a strange behavior using cfgrid format="applet". If the selectmode="Edit" and I do specify a selectcolor, the field clicked on will... -
Help with CFGrid
How can I get a hyperlinked file deleted from the server when the delete action occurs in the Grid, which the action is also followed through to the... -
doug777 #2
Re: CFGrid Not Populatin
Your cf looks right. I suggest you add <cfdump var="#Lookup#"><cfabort>
after your </cfquery> tag and see if your query is returning the data
you expect.
Doug
hhr_jb wrote:> Can someone please help. I'm creating a flash form and trying to query mysql
> database and displaying the data inside of the data grid. I get all the column
> names, but the data is not populating. Here's my code.
>
> <Cfformgroup type="horizontal">
> <cfquery name="Lookup" datasource="Tracker">
> Select * from Advertising where Month="01" and Year="2006"
> </cfquery>
> <CFgrid name="Jan" Query="Lookup">
> <CFgridcolumn name="Site" Header="Site">
> <CFgridcolumn name="Month" Header="Month">
> <CFgridcolumn name="Day" Header="Day">
> </CFgrid>
> </cfformgroup>
>
> Thanks
>
>doug777 Guest
-
hhr_jb #3
Re: CFGrid Not Populatin
Thanks Doug777, but it did not work. I still do not get any data in the grid. Any Other Suggestions.
Thanks
hhr_jb Guest
-
doug777 #4
Re: CFGrid Not Populatin
The only difference I can see between your code and code I've used is
that I always do all my database interaction stuff before calling
cfform. So the only other suggestion I have if the data returned by the
query is correct, is to move the query so that it comes before cfform. I
don't know why that should make a difference, but it's worth a try.
Another possibility is that some variable you're using is a reserved
word. It wouldn't be a bad idea to change the database column names to
something like AdSite AdDay AdMonth otherwise you tend to get different
tables with same column names which is bad practice and can cause errors.
Other than that you could post the cfdump.
Doug
doug777 Guest
-
hhr_jb #5
Re: CFGrid Not Populatin
Ok, I got it to work now. I'd just moved the query outside of the form declaration and bam, all the data poulated.
Thanks
hhr_jb Guest



Reply With Quote

