Do you want to delete document and move to other page in Web? This is very simple way without any Notes script and special form (in other words,$$ReturnDocumentDeleted). Just use Javascript.
There is "Delete" button. When user click this button, just call Javascript function "Delete()" and the "Delete()" function is like this:
<script>
function Delete(){
var thisunid = '
var parentunid = '
window.location.href=thisunid+'?DeleteDocument';
window.location.href=parentunid+'?OpenDocument';
}
</script>
You know I use "computed value", so write the Javascript function within body of form (not
within "JS Header"). This example removes current document and moves to its parent document. So the
formula for variable 'thisunid'is
"@Text(@DocumentUniqueID)" and that for variable 'parentunid' is
"@Text($Ref)".
Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.
This was first published in December 2000