CFGrid Not Populatin

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. <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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139