Something really wierd is happening. We have some very simple needs - to launch a new Memo or new Appointment in the user’s mail database from an external application.
The problem starts if Notes is minimized onto the worktray (it works fine if it’s in focus).
Using NotesUIWorkspace.EditDocument(True, doc), I expect it to simply open one new instance.
BUT …
The result depends on whether mail database is open (either to a view or document). If mail database is open, then it creates one instance - that’s what we want. If the mail database is not open, it opens it, and ALSO opens the default view (which may be the Calendar), then adds the new instance.
BUT WORSE STILL
If I have Help open and shrunk, it opens the new instance INSIDE Help!!! (ditto if Designer or Admin are open)
Can anyone help us? It’s going to make our Notes integration look stupid compared to the Outlook integration we also sell.
Subject: get a handle on user;s mail file…
You need to first get a handle on user’s mail file. Then compose an email.
Subject: we do that - can you suggest anything else
we get user’s mail server and file name from notes.ini (and store in (strServer, strMailFile), then open it with
Set uiw = CreateObject(“Notes.NotesUIWorkspace”)
If uiw Is Nothing Then
…'raise an error and get out
Else
…Dim bNeedToOpenDB As Boolean 'flag
…If (uiw.CurrentDatabase Is Nothing) Then 'that means there’s no database open
…bNeedToOpenDB = True
…ElseIf Not (uiw.CurrentDatabase.Database.FilePath = strMailFile) Then 'that means current database isn’t user’s mail
…bNeedToOpenDB = True
…End If
…If bNeedToOpenDB Then 'that means the mail database isn’t open
…Call uiw.OPENDATABASE(strServer, strMailFile)
Subject: unfortunately, that’s working in the back-end object…
and like I said we need to open it in the front-end so the user can fill in some more information.