Accessibility
 
Home > Products > Dreamweaver > Support > Editing Database Records
Dreamweaver Icon Macromedia Dreamweaver Support Center - Editing Database Records
Creating delete links

After creating the dynamic table, you must create links that the user can click to delete the associated record from the database. This section describes how to create the links. The next section describes how to modify the link so that it also passes the ID of the record the user selects to delete. The Delete Record server behavior will use this ID to find the requested record in the database and delete it.

To create delete links:

1 In the dynamic table, create a new column by clicking inside the last column and selecting Modify > Table > Insert Rows or Columns.
The Insert Rows or Columns dialog box appears.
2 Select the Columns option, then select the After Current Column option.

After you click OK, Dreamweaver MX adds a column to the table.
3 In the newly created column, enter the string "Delete" in the row containing the dynamic content placeholders. Make sure you enter the string inside the tabbed Repeat region.
If Live Data is turned on, enter the string in the first row of records and click the Refresh icon.
4 Select the Delete string to apply a link to it.
If Live Data is turned on, select the string in the first row of records.
In the following example, the string "Delete" is selected. The links will be applied to each occurrence of "Delete" in the column.

5 In the Property inspector, enter the confirmation page in the Link field.
You can enter any file name you want. In the following example, the file is called confirmDelete.cfm.

After clicking outside the Link field, the Delete string appears linked in the dynamic table. If you turn on Live Data view (View > Live Data), you can see that the link is applied to the same text in every table row. If Live Data is already turned on, click the Refresh icon to apply the links to each row.

To Table of Contents Back to Previous document Forward to next document