O'Reilly logo

ColdFusion 8 Developer Tutorial by John Farrar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Grid Updates and Deletes

Now we will be making a few minor changes that will allow us to update and delete rows in the grid. We will need to have a front end and back end to manage this transaction. The highlighted code given here is no big challenge to change in this grid tag. The following changes are to be made:

  1. We set an attribute tag for edit mode.
  2. We set two attributes for adding in the delete functionality. We set delete to 'true' and pass text in for the visible link on the grid.
  3. We set the onChange attribute to cfc and then the method will take the update requests. It will require all the variables to be passed back to the CFC. Apart from this, we have the following case:
<html> <head> <title>Grid Example</title> </head> <body> <h2>Grid ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required