>- 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.
<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>
<cfloop query="components">
<cfif componentID EQ currentcomponent>
<cfgridrow data="#fieldID#,#fieldName#,#data#">
</cfif>
</cfloop>
</cfgrid>
</fieldset>
</cfoutput>
_______________________________________________
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 -<