When you want to delete documents in a Notes view,
one would normally think that the document is not in use by any
one? So we gleefully wrote our Cleaning
the Inbox code, and went our merry way.
However, as we add more and more items, to the deletions
list, it comes a time, when we have the document selected,
either intentionally or in error or haphazardly. Pick your
poison :-)
So, we can now enhance our program to select the documents in
the User Interface (UI) and then move that document to the TRASH
bin. To make things easier, we make a copy of all our documents,
and then place (Put Infolder) then into the $Trash folder.
Next, in my case, we will remove the document from the $Inbox
folder.
Vola, our error has gone away, and we can still clean out
$Inbox while reading or viewing a document. Please note, that
you can do a refresh to the view, to remove the document or you
can simply allow the user to click on the refresh box in the
view, after the agent completes.
