Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

cfgridupdate could not find the grid named

Posted on 2006-11-27
4
186 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

828 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