House of Fusion
Home of the ColdFusion Community

Search cf-talk

December 02, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   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       

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

CFGrid Question

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Duane Boudreau
08/29/2008 12:38 PM

I've been tasked with fixing some really old code that contains a CFGrid and it's been a long time since I've looked at CFGrid. I have the following: <cfif isDefined("Form.FieldNames")>   <cfgridupdate datasource="#request.dsn#" tablename="myTable" grid="lookup1" keyonly="yes"> <cfelse>   <cfquery name="getData" datasource="#request.dsn#">     SELECT  field1, field2, field3           FROM    myTable           WHERE    field4 = #url.id#   </cfquery>   <cfform action="implant_lookup.cfm?table=1&f=#url.id#" method="post">     <cfgrid format="applet" name="lookup1" query="getData" insert="no" delete="no" selectmode="edit">       <cfgridcolumn name="field1" display="yes">       <cfgridcolumn name="field2" display="yes">       <cfgridcolumn name="field3" display="yes">     </cfgrid>     <input type="submit" name="button" value="Save Changes">   </cfform> </cfif> I get the following error: cfgridupdate could not find the grid named lookup1. Any idea what I am missing? Thanks, Duane


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists