An agent that is run from a menu action bar of a view, finds selected documents in the view and sets a field on those documents. The agent then opens a form which updates the selected documents in a script behind a button. My problem is, how to deselect the documents in the view when the update is done. ws.ViewRefresh and ss.UpdateProcessedDoc do not work.Thanks!
Subject: NotesUIView.deselectAll()
Subject: RE: NotesUIView.deselectAll()
Thanks for your help! This will work well when my users are upgraded from 5.0 to 6.5.
Subject: Deselect documents in a view
To refresh the view on the user screen, first call Refresh method, then call the ViewRefresh method of NotesView:
Call notesView.Refresh
Call notesUIWorkspace.ViewRefresh
Subject: RE: Deselect documents in a view
Thanks for your help! I did test this solution in both the script behind the button and at the end of the agent’s script. The view does refresh and shows changes made to the documents, but still leaves the documents selected.I also found if I manually run a dummy agent after the button script completes, the documents do become deselected. (Adds one manual step to the process). But, they remain selected when my initial agent (the one that instantiates the form) terminates…??