esphelpdesk
asked on
cfgridupdate could not find the grid named
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/contractsu pdate.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"><s pan 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?
Two pages of code exist for this problem:
__________________________
<cfquery name="empdata" datasource="pess">
SELECT * FROM tbl_project
</cfquery>
<cfform action="reports/contractsu
<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"><s
The contracts table has been updated.
<input type=button value=" Close Window " onClick="javascript:window
__________________________
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
did you add a selectmode="edit" to your cfgrid tag?
ASKER
did you add a selectmode="edit" to your cfgrid tag?
_________________________ yes... it is in the above code...
_________________________ yes... it is in the above code...
ASKER
The tag has a bug in it. Adobe needs to fix with version 8.0