How to get handle to a particular notes Window (Lotus Notes Client)

Hi Friends,

I am trying to activate a Notes Window through Lotus Script. Several notes windows are open and I want to activate a particular notes window. Any suggestion will be of great help.

Thanks

Venkat

Subject: I have just solved this problem

If you have a NotesUIDocument object for that window, then just use EditDocument property as I did in this sub


Sub elapsedTimerHandler(Source As NotesTimer)

Dim docTitle As Variant

Dim ws As New NotesUIWorkspace

docTitle=Evaluate({"Call for " + @Name([CN]; CustomerName) + " (" + Status + ")"}, uidoc.Document)

Messagebox "Please close the Support Call  document labelled:'"+docTitle(0)+"'", 0, "Support Call is open for too long"

Call ws.EditDocument(False,uidoc.Document, False, "", False, False)



Set elapsedTimer = New NotesTimer(CONST_TIME2, 	"Elapsed time alarm")

On Event Alarm From elapsedTimer Call elapsedTimerHandler

End Sub

Subject: How to get handle to a particular notes Window (Lotus Notes Client)

You can’t do it, the only way I could imagine it is possible is through the API.

What you could try doing is re-opening the database which is open in the window you want to access, this ‘should’ just bring that window to the front. But I’ve never tried it myself/