>- see footer for list info -<
Russ,

You're missing a CFOUTPUT to do the grouping no?

Why have you got a CFLOOP inside your CFOUTPUT QUERY="" GROUP=""?

To do proper group you need a nested CFOUTPUT in the middle.

Give that a whirl?

<cfoutput query="components" group="componentID">
                       <fieldset><legend>#component#</legend>
                       <cfgrid name="C#componentID#" height="150"
width="100%" format="FLASH"
                       insert="No" delete="No" sort="Yes" font="Arial"
bold="No" italic="No"
                       autowidth="true" appendkey="No" highlighthref="No"
enabled="Yes" visible="Yes"
                       griddataalign="LEFT" gridlines="Yes" rowheaders="No"
rowheaderalign="LEFT"
                       rowheaderitalic="No" rowheaderbold="No"
colheaders="No" colheaderalign="LEFT"
                       colheaderitalic="No" colheaderbold="No"
selectmode="EDIT" picturebar="No">
                       <cfgridcolumn name="fieldID" headeralign="LEFT"
dataalign="LEFT" bold="No" italic="No"
                       select="No" display="No" type="NUMERIC"
headerbold="No" headeritalic="No">
                       <cfgridcolumn name="fieldName" header="Field Name"
headeralign="LEFT" dataalign="LEFT"
                       bold="No" italic="No" select="No" display="Yes"
type="STRING_NOCASE" headerbold="No" headeritalic="No">
                       <cfgridcolumn name="data" headeralign="LEFT"
dataalign="LEFT" bold="No" italic="No" select="Yes"
                       display="Yes" type="NUMERIC" headerbold="No"
headeritalic="No">
                       <cfset currentcomponent = componentID>
                       <cfoutput>
                       <cfgridrow data="#fieldID#,#fieldName#,#data#">
                       </cfoutput>
                       </cfgrid>

                       </fieldset>
</cfoutput>



On 29/09/05, Snake <[EMAIL PROTECTED]> wrote:
> >- see footer for list info -<
> I tried that way first, it does the same thing
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Moretti
> Sent: 29 September 2005 17:22
> To: Coldfusion Development
> Subject: Re: [CF-Dev] CFGRID
>
> >- see footer for list info -<
> Snake wrote:
>
> >>- see footer for list info -<
> >>
> >>
> >I'm having a play with flash forms today, and using the new Flash CFGRID.
> >Is it meant to be posisble to have multiple CFGRIDS on a page, cozz I
> >am getting very strange results.
> >Every instance of the cfgrid is repeating the columns again.
> >So in instance 1 I get 2 columns "fields,data", in instance 2 I get 4
> >"fields,data,fields,data" and so on and so on.
> >Plus each instance has exactly the same rows of data, which it shouldn't
> do.
> >
> >Here is the code. Each cfgrid has a unique name, so I can't see why
> >this is happening.
> >
> >
> <fieldset> <legend> aren't valid tags in a flash cfform, so they won't be
> helping matters. You need to use:
> <cfformitem type="text">#component#</cformitem> instead of legend.
>
>
> But did you mean to be looping the entire query again inside a loop of
> the grouped query?
>
>             <cfloop query="components">
>                 <cfif componentID EQ currentcomponent>
>                     <cfgridrow data="#fieldID#,#fieldName#,#data#">
>                 </cfif>
>             </cfloop>
>
> You possibly just want :
> <cfoutput>
>     <cfgridrow data="#fieldID#,#fieldName#,#data#">
> </cfoutput>
>
> to get the items for that component.
>
> Stephen
>
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go to
> http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
>
>
>
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go to 
> http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
>


--
Niklas Richardson
Prismix Ltd

Flex and ColdFusion Experts!
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to