Delete With Confirmation

When an user clicks the delete button image, he/she will get a confirmation message "Do you really want to delete this document?". If the user click Yes, the document will be deleted; No, message box goes away without any action. Required a delete agent and a delete button image. 1) Add a field called "$$HTMLHead" in the document form. $$HTMLHead field is text, hidden, and computed for display with value equal the following: UNID:=@Text(@DocumentUniqueID...

); "<SCRIPT LANGUAGE=\"JavaScript\"> "+@NewLine+ "function deleteDoc(form) { "+@NewLine+ "if (confirm(\"Do you really want to delete this document? Click \'OK\' to delete or \'Cancel\' to abort\")) "+@NewLine+ " { top.location.assign(\""+"/dir/dbname.nsf/WebDelete?OpenAgent&"+UNID+"\")" + @NewLine+ " } }" where dir is your directory after your Notes/Data directory dbnames.nsf is the database file name WebDelete is the agent performing the deletion 2) Add a field called "DeleteImage" in the document form. DeleteImage field is text, not hidden, and computed for display with value equal the following: "[<A HREF=\'javascript:deleteDoc(this.form)\'><IMG SRC=\"deleteimage.jpg\" border=0>]" where deleteimage.jpg is the location of your deletion image.

This was first published in November 2000

Dig deeper on Domino Resources - Part 3

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchDataCenter

SearchExchange

SearchContentManagement

Close