EditDocument with [newInstance] set to false throws Invalid or NonExistant document error

Set notesUIDocument = notesUIWorkspace.EditDocument( [editMode] , [notesDocument] , [notesDocumentReadOnly] , [documentAnchor$] , [returnNotesUIDocument] , [newInstance] )

When opening a document using notesUIWorkspace.EditDocument, where notesDocument refers to a document in a different database, “Invalid or NonExistant document” is raised if the [newInstance] flag is false. However if [newInstance] is true the document is opened correctly. When notesDocument is in the current database then [newInstance] works ok.

Any one got any thoughts?

Subject: EditDocument with [newInstance] set to false throws Invalid or NonExistant document error.

It looks like a big fat bug to me! I got exactly the same results. I would have bet that it worked in some version, but all I have is my 6.0.3 client right now, so I can’t confirm either way. I just hope they fix it.

Does someone know how to submit bugs? Like many people, I do come across things on occasion that seem very much like bugs, and I’d like to “help the cause!”

-mike

Subject: RE: EditDocument with [newInstance] set to false throws Invalid or NonExistant document error.

Same problem, I’m running 6.5 on Win2k.

Also if I set the flag to False and the doc is in the same database the doc won’t switch into edit mode, I have to do the following:

'this line should give the parent doc focus and put into edit mode

Set uidocParent = ws.EditDocument( True , docParent , , , , False )

'need to call this bit as the above line doesn’t seem to put the doc in edit mode

uidocParent.EditMode = True

Seems that this feature is very buggy. The above code also bombs out in debug mode with the following error message, but works OK when debugger is switched off!

“Error 4412: Notes Error - Specified command is not available from the workspace.”

Subject: my workaround: EditDocument with [newInstance] set to false throws Invalid or NonExistant document error.

If you open the db the doc refers to in UI you can open the doc.

Call ws.OpenDatabase(db.Server,db.FilePath,“”,“”, True)

Call ws.CurrentView.Close

Set uidoc = ws.EditDocument(True,doc, False, , True, False)