Selecting Documents in a View

Hi All

I have a view which contains many documents. I wish to select all the documents in the view from a button on the action bar. Im using @Command([EditSelectAll]) but all the catagories get selected too. Is there anyway that I can select all the documents without having the catagories selected too. Thanks for any help on this.

Subject: Selecting Documents in a View

The command you are using selects all entries in the view. What are you wanting to do with the documents once you have them selected? There may be other solutions available if we know what your end goal is.

Subject: RE: Selecting Documents in a View

Thanks for the reply

There are several actions that can be performed on them. The most common are to email them all or to copy them all. Sometimes its just most of them that need to be selected but there are over 500 docs. Is there a way to select/deselect just one entry ie the catagories?

Subject: RE: Selecting Documents in a View

Depending upon the actions you want to perform, you may want to look at the Lotuscript NotesView class. You can loop through all of the documents in the view and count them and take many different actions on the documents individually or as a collection. You can do some of the same things with formula language. You could also change your current code so it opens a different view that is not categorized and run the actions in that view where you don’t have to worry about categories. The user could be using one view to see the data and to click the button, but the code actually runs against a different (hidden) view.

Subject: RE: Selecting Documents in a View

Thanks for the advice. I will try using the hidden view method. Still new to this and didn’t think of it. Thanks again.