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

  1. #1

    Default CF7 - Flash Grid

    Hi, I have the code below which is supposed to display X number of grids in my
    form (depending on the number of sections), each grid will display a list of
    the "colours" related to that section.

    However when the form is generated the "colour" column in every grid is
    repeated the same number of times as the number of sections.

    so if there is 3 sections then i will have the colour colum repeaded 3 times
    (each exactly the same) and when you update one column the other 2 will update.

    Why is it adding the columns more than once? Please help,
    it will be greatly appreciated.

    Jack


    <cfquery name="getSections" datasource="#application.datasource#"
    dbtype="odbc">
    SELECT id AS sections_id, name AS sections_name, viewOrder AS
    sections_viewOrder
    FROM sections
    ORDER BY viewOrder
    </cfquery>
    <cfquery name="getColours" datasource="#application.datasource#" dbtype="odbc">
    SELECT id AS colours_id, name AS colours_name, sectionID AS colours_sectionID
    FROM colours
    WHERE productID = #id#
    </cfquery>

    .......some other code.........

    <cfoutput query="getSections">
    <cfformgroup type="hbox">
    <cfformgroup type="vbox">
    <cfformitem type="text">#sections_name# Colours</cfformitem>
    <cfquery name="getColours_#sections_id#" dbtype="query">
    SELECT colours_name AS colours_name, colours_id AS colours_id
    FROM getColours
    WHERE colours_sectionID = #sections_id#
    </cfquery>
    <cfgrid name="colours_#sections_id#" query="getColours_#sections_id#"
    height="80" selectmode="edit">
    <cfgridcolumn name="colours_id" display="no">
    <cfgridcolumn name="colours_name" display="yes" header="Colour">
    </cfgrid>
    </cfformgroup>
    </cfformgroup>
    <cfformitem type="hrule" />
    </cfoutput>

    Jak-S Guest

  2. Similar Questions and Discussions

    1. How to center a flash grid.
      I?m sure I?m overlooking something simple. I have a grid in flash format I'd like to center it inside a cfform format flash. My grid consists of...
    2. New Line in Flash Grid
      Anyone know how to enter a newline "#Chr(13)#"&"#Chr(10)#" into <cfgrid selectmode="edit"...> what I'm trying to do is to edit a single grid box...
    3. Search flash grid.
      I've got a form that is bound to a grid in flash so that when a record is clicked, it displays all of the data on that record. I want to be able to...
    4. Flash Form - Grid
      Is it possible to change the values in a grid without using the EDIT mode? I want to select a row, and populate a set of nicely formatted input...
    5. Flash Grid
      Hi people, just trying out Freehand for the first time and one thing that seems odd is the Grid, I'm so used to using Grids like the one found in...
  3. #2

    Default Re: CF7 - Flash Grid

    Hi,

    Dont worry about this. I have decided to give up on the whole flash forms thing. Just not sutiable for anything i want to do.

    Jack
    Jak-S 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