Solved

cfgridupdate could not find the grid named

Posted on 2006-11-27
4
187 Views
Last Modified: 2013-12-24
Ok.. this is the first time I have tried using the cfgrid command and I am  getting insane errors.  I googled the error and found millions of posts on this with not one solid answer.

Two pages of code exist for this problem:
____________________________________________________

<cfquery name="empdata" datasource="pess">
      SELECT * FROM tbl_project
</cfquery>

<cfform  action="reports/contractsupdate.cfm" >
      <cfgrid name="contractgrid" query="empdata"
                   width="500" insert="yes" delete="yes" height="800" enabled="yes"
                  autoWidth = "yes"
                   insertButton = "Insert a New Contract"   deleteButton = "Delete Contract" selectmode="edit" >
                        
            <cfgridcolumn name="contractnumber">
            <cfgridcolumn name="projectname">
      </cfgrid>
      <br>
      <input  type="Submit" value="Submit Changes to be Saved">
</cfform>

____________________________________________________
<cfgridupdate grid="contractgrid"
datasource="pess"
keyonly="yes"
tablename="tbl_project"><span style="classmainfont">
The contracts table has been updated.  


<input type=button value=" Close Window " onClick="javascript:window.close();"></span>
_______________________________________________________

THE TABLE

projectid int (indexed key field)
contactnumber varchar 100
projectname varchar 100
dateofinsert  datetime (date stamp)

__________________________________________________________
THE ERROR
 cfgridupdate could not find the grid named contractgrid.


________________________________________________________________

Any ideas?  Or does this tag have a bug in it?
0
Comment
Question by:esphelpdesk
  • 2
  • 2
4 Comments
 
LVL 25

Accepted Solution

by:
dgrafx earned 500 total points
ID: 18027165
This is not the kind of response you were looking for I doubt, but I'd suggest scratching it and do an html grid.
You'll have a lot more power and flexibility.
I'd also ditch cfforms if I were you.
html forms will again give you a lot more power and flexibility.
It's fairly easy to do a combination of client side (javascript) validation and server side (cf code) validation.
And it will all run faster than your cfgrid applet.

btw - I don't know why the error you're getting.
0
 
LVL 25

Expert Comment

by:dgrafx
ID: 18027178
did you add a selectmode="edit" to your cfgrid tag?
0
 

Author Comment

by:esphelpdesk
ID: 18028324
did you add a selectmode="edit" to your cfgrid tag?

_________________________ yes... it is in the above code...
0
 

Author Comment

by:esphelpdesk
ID: 18125534
The tag has a bug in it.  Adobe needs to fix with version 8.0
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Reverse Proxy Server 6 96
SCCM vs Windows server 5 86
Web server settings related to keepalive 1 130
app server have enough resources... 2 61
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
What You Need to Know when Searching for a Webhost Provider
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question