We help IT Professionals succeed at work.

Removing documents from a folder

notesrookie
notesrookie asked
on
316 Views
Last Modified: 2013-11-17
Greetings learned colleagues,

Silly question I know but I haven't been able to figure out how to remove a set of documents from a folder. For example, I have moved a set of documents to a folder, done my processing and want to remove but not delete all the documents from that folder once it's done. When I try to remove the documents one at a time, only one gets deleted. I'd like to be able to remove them all. I know I need to get these docs in a collection but how do I do that within a folder? I am on Domino R7.0.1.

Regards - NotesRookie
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2007

Commented:
You need to put them in another folder if you do not want to delete them.

You can put them in the Inbox, or create a folder called - Processed, and put them there.



I hope this helps !

Author

Commented:
I'm trying to do a RemoveAllFromFolder but can only do that with a notes document collection. I'm trying to figure out how to get a collection of documents already in that folder to remove them so as not to do double processing for the next go around. Thanks.
CERTIFIED EXPERT
Top Expert 2007

Commented:
Are you trying to do this automatically via an agent, or via a button where the user  selects the folder ?

If the latter, simply have them select all the docs in the folder, if the former, you should be able to go through all the docs and add them to a collection .


I hope this helps !
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Bill-Hanson,

That's what I was looking for. I could not find anything in Designer help. I was trying to figure out to add a document to a collection. Thanks.
I just realized that I excluded a dependent function.  Here's the DcCreate function that appears in ViewGetAllDocuments.  It doesn't do much, but I've included it for completeness...

Public Function DcCreate(source As NotesDatabase) As NotesDocumentCollection
      
      Set DcCreate = source.Getprofiledoccollection("__NOTHING__")
      
End Function

Commented:
If you need a separate script to do the rmeoval (i.e., a "empty folder" button, not something incorporated into a larger procesisng engine), then your most efective way is to use the UI

@Command([OpenView]; nameOfFolder ; ""; "1" );
@Command([EditSelectAll]);
@Command([RemoveFromFolder]);
@Command([FileCloseWindow])

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.