Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can you deselect all documents in a view using LotusScript?

Status
Not open for further replies.

Replicator

Programmer
Nov 30, 2001
8
0
0
US
The only way I know is to run an agent that processes selected documents.
Is there any way to deselect documents without running an agent?
 
WELL U CAN HAVE THE @COMMAND([EDITDESELCTALL])IN AN AGENT AND THEN RUN THE AGENT THROUGH UR SCRIPT. HOPE IT WORKS
 
I've now found a better solution....
Sub Deselect_All_Docs
Dim ws As New Notesuiworkspace
Dim uiview As Notesuiview
Dim Doc As NotesDocument

Set uiview = ws.Currentview
Set collection = uiview.documents

For I% = 1 To collection.count
Set Doc = collection.getnthdocument( I% )
Call uiview.documents.Deletedocument( Doc )
Next
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top