Question
cfgridupdate don't find grid parameter.. error
I use this code that I've found in the reference but when i
try to insert a new record coldfusion give me this error:
"cfgridupdate could not find the grid named FirstGrid"
So, i write a new code with cfgrid and cfgridupdate but coldfusion give me always the same error.
but FirstGrid is the cfgrid name parameter passed to the page for the cfgridupdate tag? I use CFMX 7.02 and win XP SP 2 with Fiirefox 1.5.07
Thank you
Alessandro
(Sorry for my bad english!!! 😞 )
<!--- If the gridEntered form field exists, the form was submitted.
Perform gridupdate. --->
<cfif IsDefined("form.gridEntered") is True>
<cfgridupdate grid = "FirstGrid" dataSource = "cfdocexamples" Keyonly="true"
tableName = "CourseList">
</cfif>
<!--- Query the database to fill up the grid. --->
<cfquery name = "GetCourses" dataSource = "cfdocexamples">
SELECT Course_ID, Dept_ID, CorNumber,
CorName, CorLevel, CorDesc
FROM CourseList
ORDER by Dept_ID ASC, CorNumber ASC
</cfquery>
<h3>cfgrid Example</h3>
<I>Try adding a course to the database, and then deleting it.</i>
<cfform>
<cfgrid name = "FirstGrid" width = "450"
query = "GetCourses" insert = "Yes" delete = "Yes"
font = "Tahoma" rowHeaders = "No"
colHeaderBold = "Yes"
selectMode = "EDIT"
insertButton = "Insert a Row" deleteButton = "Delete selected row" >
</cfgrid><br>
<cfinput type="submit" name="gridEntered">
</cfform> Text Text cfgridupdate could not find the grid named FirstGrid.
"cfgridupdate could not find the grid named FirstGrid"
So, i write a new code with cfgrid and cfgridupdate but coldfusion give me always the same error.
but FirstGrid is the cfgrid name parameter passed to the page for the cfgridupdate tag? I use CFMX 7.02 and win XP SP 2 with Fiirefox 1.5.07
Thank you
Alessandro
(Sorry for my bad english!!! 😞 )
<!--- If the gridEntered form field exists, the form was submitted.
Perform gridupdate. --->
<cfif IsDefined("form.gridEntered") is True>
<cfgridupdate grid = "FirstGrid" dataSource = "cfdocexamples" Keyonly="true"
tableName = "CourseList">
</cfif>
<!--- Query the database to fill up the grid. --->
<cfquery name = "GetCourses" dataSource = "cfdocexamples">
SELECT Course_ID, Dept_ID, CorNumber,
CorName, CorLevel, CorDesc
FROM CourseList
ORDER by Dept_ID ASC, CorNumber ASC
</cfquery>
<h3>cfgrid Example</h3>
<I>Try adding a course to the database, and then deleting it.</i>
<cfform>
<cfgrid name = "FirstGrid" width = "450"
query = "GetCourses" insert = "Yes" delete = "Yes"
font = "Tahoma" rowHeaders = "No"
colHeaderBold = "Yes"
selectMode = "EDIT"
insertButton = "Insert a Row" deleteButton = "Delete selected row" >
</cfgrid><br>
<cfinput type="submit" name="gridEntered">
</cfform> Text Text cfgridupdate could not find the grid named FirstGrid.