Accessibility
 
Home > Products > UltraDev > Support > Editing Database Records
Dreamweaver UltraDev Icon Macromedia Dreamweaver UltraDev Support Center - Editing Database Records
Deleting records in Dreamweaver UltraDev 4

Your application can contain a page that lets users delete existing records in a database table.

A delete page has four building blocks:

A filtered recordset to retrieve the record from a database table
A read-only display of the data about to be deleted
A Submit button to send the delete command to the server
A Delete Record server behavior to update the database table

The search results page may serve as the delete page if it displays a single record. This article describes how to construct a single-record search delete page. The user will search for an employee by last name, and then delete that employee's information from the database.

If you want your results page to list more than one record from your database (several employees named Smith, for example), you can create a list of results on the page, then add a Go to Detail Page server behavior that names the detail page as the delete page. For instructions on creating this kind of results page, see Building a simple database search feature. For instructions on creating a detail/delete page, see "Creating a detail page for a results page," and "Building a page to delete a record" in Using UltraDev or in Dreamweaver UltraDev Help (Help > Using UltraDev).

Note: The delete page can contain only one record-editing server behavior at a time. For example, you cannot add an Insert Record or an Update Record server behavior to the delete page.

To Table of Contents Forward to next document