Solved

cfgridupdate could not find the grid named

Posted on 2006-11-27
4
184 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to configure and install nginx ? 1 433
IIS Site Configuration Copy 2 70
Use System DSN 6 84
exchange 2010 turning off 3des ciphers 2 121
This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now