Whatever message this page gives is out now! Go check it out!
<cfgridupdate
grid = "grid name"
dataSource = "data source name"
tableName = "table name"
keyOnly = "yes|no">
password = "data source password"
tableOwner = "table owner"
tableQualifier = "qualifier"
username = "data source user name">Attribute | Req/Opt | Default | Description |
clientInfo | Optional | Structure containing properties of the client to be set on the database connection. | |
grid | Required | Name of the cfgrid form element that is the source for the update action. | |
dataSource | Required | Name of the data source for the update action. | |
tableName | Required | Name of the table to update. For ORACLE drivers, entry must be upper-case. For Sybase driver, entry is case sensitive; must be same case as used when table was created. | |
keyOnly | no | Applies to the update action:
| |
password | Optional | Overrides password value specified in ODBC setup. | |
tableOwner | Optional | Table owner, if supported. | |
tableQualifier | Optional | Table qualifier, if supported. Purpose:
| |
username | Optional | Overrides username value specified in ODBC setup. |
<!--- 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>...