Domino Code Fragment

Code Name*
Web popup confirmation to delete document
Date*
10/1/96
Source (or email address if you prefer)*
Jamie Magee
IP address:.3.133.130.136
Description*
Button pops up a web dialog, asking user if they really want to delete the document.
Type*
JavaScript
Categories*
User Interface (Web)
Implementation:
None (plug and play)
Required Client:
Server:
Limitations:
won't work when composing a new doc, so you may want to hide it then. Highlight the code above and click Text Properties, {hide tab}, check the box "Hide paragraph if formula is true", and enter @IsNewDoc as your formula.
Comments:
Files/Graphics attachments (if applicable): Code:
1) Place the following formula in a computed for display text field (or computed text area, if using 4.6). Name the field anything you want:

@Subset(@DbName; -1) + "/$defaultView/" + @Text(@DocumentUniqueID) + "?DeleteDocument"


2) Place the following literal text somewhere on your form, replacing the {FieldFromAboveGoesHere} with the field created above. This will have the effect of creating a dynamic URL for the JavaScript assign function.