Binding CFGrid and Query MX7

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Binding CFGrid and Query MX7

    Hello-
    I was playing around with flash forms in MX7. I want to bind a quesry to a cfgrid. I looked at the demo on the MM site, and am trying to do the basic scripting just to see how it works.

    I keep getting an error saying that the value of query="client" is invalid.

    Sample code:

    <cfquery name="client" datasource="test">
    SELECT Contact_Name, Contact_EMail, WebsiteURL FROM billing_clienttb ORDER BY Company_Name ASC
    </cfquery>

    <cfform format="flash" width="500" skin="haloBlue">

    <cfgrid name="grid" query="client" selectmode="single">

    <cfgridcolumn name="Contact_Name">
    <cfgridcolumn name="Contact_Email">
    <cfgridcolumn name="WebsiteURL">

    </cfgrid>

    </cfform>

    What am I doing wrong?


    Thxs,
    Anthony
    Anthony Brown Guest

  2. Similar Questions and Discussions

    1. CFGRID, Using Query - How do I hide columns?
      This might make no sense or I might know the answer, but not know I know it ... How can I hide columns in a query generated cfgrid? You say,...
    2. Multiple Joins in one Query for CFGRID
      Hello, I am tring to combine all 4 queries into 1 so that it will work in a CFGRID and it's a little beyond my SQL experience. I have all this...
    3. binding CFGRID data to a CFSELECT
      I have a flash CFGRID that lists my clients, when i select a client their data populates the form below the grid. When I select the client, i have a...
    4. binding from cfgrid in a flash form to an html link
      I need to pass the Id from the flash form cfgrid to a url variable in a link. Is this possible with the new flash forms? <a...
    5. CFGRID QUERY USING A WHERE CLAUSE
      All of the cfgrid query examples I see do not include a WHERE clause. I would like to know if it is possible to include one and how do you pass in...
  3. #2

    Default Re: Binding CFGrid and Query MX7

    Figured it out.
    Apparently I can't use client as a RS name. Changed it to clientrs and it works now.

    Darn reserved words...lol


    "Anthony Brown" <anthony@kermy.com> wrote in message news:d2ccfu$su6$1@forums.macromedia.com...
    Hello-
    I was playing around with flash forms in MX7. I want to bind a quesry to a cfgrid. I looked at the demo on the MM site, and am trying to do the basic scripting just to see how it works.

    I keep getting an error saying that the value of query="client" is invalid.

    Sample code:

    <cfquery name="client" datasource="test">
    SELECT Contact_Name, Contact_EMail, WebsiteURL FROM billing_clienttb ORDER BY Company_Name ASC
    </cfquery>

    <cfform format="flash" width="500" skin="haloBlue">

    <cfgrid name="grid" query="client" selectmode="single">

    <cfgridcolumn name="Contact_Name">
    <cfgridcolumn name="Contact_Email">
    <cfgridcolumn name="WebsiteURL">

    </cfgrid>

    </cfform>

    What am I doing wrong?


    Thxs,
    Anthony
    Anthony Brown 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