Deleting data with ORM


show more Deleting data with ORM provides you with in-depth training on Developer. Taught by David Gassner as part of the ColdFusion 9 Essential Training show less
please wait ...

Deleting data with ORM

In the current state of my index.cfm page in my Photographers folder of the application, I'm letting the user click a link to select a record to delete. I'm then using the ColdFusion MessageBox tool to let them confirm or cancel the operation. To actually delete the data from the backend database, I'm going to cause the page to navigate to a separate page that will execute an ORM function that removes the data from the backend database table. I will start an index.cfm in the doDelete callback function.

I currently have a call to the JavaScript alert method there, which is just reporting which button was clicked. I will comment that code out, placing a pair of slashes at the beginning of the line and then I will place the cursor on a new line. I'll start with an if clause. I'll check the value of the btn variable for a value of Yes. Remember the JavaScript returns this value as all lowercase, so it will be either yes or no lowercase.

And then, I'll create a pair of ...

Deleting data with ORM
Video duration: 6m 30s 7h 21m Beginner

Viewers:

Deleting data with ORM provides you with in-depth training on Developer. Taught by David Gassner as part of the ColdFusion 9 Essential Training

Subjects:
Developer Web
Software:
ColdFusion
Author:
please wait ...