We have an embdded view on the main document. What we are doing is if the user opens up a document on the embedded view we are going to look to see if the main document was in editmode, and if so save the document, and then open up the document from the embedded view. (Note: when the user closes the child document, we will re-open the main document).
The code in the Initialize section is…
Set sessionNavigate = New NotesSession
Set dbNavigate = sessionNavigate.CurrentDatabase
Set wsNavigate = New NotesUIWorkspace
Set uidoc = wsNavigate.CurrentDocument
Set docNavigate = wsNavigate.CurrentDocument.Document
the code in the Queryopendocument of the embedded view is
If uidoc.editmode = True Then
Msgbox "try save first"
Call uidoc.save
Msgbox "Back from the save"
End If
End Sub
I get the msgbox for the try save first, and I put msgbox in the form in querySave and postsave events of the main form, and these fire off as well.
I Never get the ‘Back From Save’, that is when notes abends.
You’ll note that i use navigate, since i read in the notes 6 forum that using the same global variables in the main form and the embedded view may cause problems.
Wondering if this is something with version 8 bug or I missed something else completely.
Thanks
John