How to create a delete page with new version
How do I create a delete page with DataAssistPages in the new version without using this outdated repeating table?
How do I create a delete page with DataAssistPages in the new version without using this outdated repeating table?
creating the delete page page with the new version is the same as in the old version.
the link to your delete page should pass in a querystring variable to tell which record to delete.
delete.php?id=33
for example.
on the delete page, you would have a form with a delete button, to make sure the person rely wants to delete the record.
add a hidden form element to the page to capture the ID query string variable:
<input name="id" type="hidden" id="id" value="<?php echo((isset($_GET["id"]))?$_GET["id"]:"") ?>" />
then add the delete record behavior, click the plus button on the server behaviors panel and select WebAssist -> Data Assist -> Delete Single record delete.
for the key column, select the ID column, click the lightning bolt icon next to Key Value and select the ID hidden form element.
Thx Jason
Seems to be unnecessary complicated. Why is there no delete page option in the new Create Pages Wizard?
Just an idea: with ADDT I got automaticly file delete code if needed when applying a form with a file field.
well, the wizard does create the delete for you, just not as a separate page. it allows you to create the delete button on the details page.
in the create pages wizard, go to the Manage pages tab. select the Results or detail page and click the pencil edit icon to make changes to that page.
there is a checkbox option to include the delete button for those pages.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.