House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

CFGrid Question

  << Previous Post |  RSS |  Subscribe to this Group Next >> 

CFGrid Question

I've been tasked with fixing some really old code that contains a CFGrid and Duane Boudreau 08/29/2008 12:38 PM

08/29/2008 12:38 PM
Author: Duane Boudreau Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:57433#311785 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 >>

Search cf-talk

February 11, 2012

<<   <   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