Gossamer Forum
Home : Products : DBMan : Customization :

Delete and Modify Button on record

Quote Reply
Delete and Modify Button on record
In sub html_record i need formbutton for delete and modify the record. So the user can delete the record without to use delete-search. If the user had the record deleted or modified, dbman sould be in view-mode again.

Hope you can help me.

kai
Quote Reply
Re: Delete and Modify Button on record In reply to
I believe I attempted to answer this question awhile back....

What you need to do is the following:

Add the following codes in your sub html_record routine:

Code:
|;
if ($per_mod) {
print qq|<a href="$db_script_link_url&modify_form=1&ID=$rec{'ID'}">Modify Record</a>|;
}
print qq|

AND the following codes:

Code:
|;
if ($per_del) {
print qq|<a href="$db_script_link_url&delete_form=1&ID=$rec{'ID'}">Delete Record</a>|;
}
print qq|

Change the ID to your $db_key variable.

Hope this helps.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Delete and Modify Button on record In reply to
Thanks Eliot for covering this again. I've been meaning to sit down and figure this out myself.


cheers

joe