Solved

cfgridupdate could not find the grid named

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

Accepted Solution

by:
dgrafx earned 500 total points
Comment Utility
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 24

Expert Comment

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

Author Comment

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

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

Author Comment

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 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

11 Experts available now in Live!

Get 1:1 Help Now