Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 743

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
<html>
<head>
<title>Update grid values</title>
</head>
<body>
<h3>Updating grid using cfgridupdate tag.</h3>
<cfgridupdate grid="employee_grid"
datasource="cfdocexamples"
tablename="Employee">
Click <a href="grid2.cfm">here</a> to display updated grid.
</body>
</html>
2
Save the file as handle_grid.cfm.
View the grid2.cfm page in your browser, change the grid, and then submit them.
3
Note: To update a grid cell, modify the cell contents, and then press Return.
Reviewing the code
The following table describes the highlighted code and its function:
Code
<cfgridupdate grid="employee_grid"
datasource="cfdocexamples"
tablename="Employee"
Updating the database with the cfquery tag
You can use the
tag to update your database from the
cfquery
over how the updates are made and lets you handle any errors that arise.
Update the data source with the cfquery tag
1
Create a ColdFusion page with the following content:
Description
Updates the database from the Employee_grid grid.
Updates the cfdocexamples data source.
Updates the Employee table.
changes. This tag provides you with full control
cfgrid
Last updated 1/20/2012
738

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents