I want to display the contents of a document from a remote database in a dialogbox. So far I haven’t succeeded when the document is NOT in the current database.I always get the message “The linked document cannot be found in the view”. Has anybody done this before or can s/he tell me what I’m doing wrong?
Thank you very much
Ruedi
The LS code goes like this:
Dim ws As New NotesUIWorkspace
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Set db = session.GetDatabase (, )
Set view = db.GetView ()
Set doc = view.GetDocumentByKey ()
If Not (doc is Nothing) Then
Call ws.DialogBox (, True, True, True, _
True, True, True, , doc, False, False, True)
End If
Subject: Dialogbox to display contents from remote database
not sure if you can display a doc from another database, never tried it. But to test a theory, try copying doc to the current database then call your dialogbox to see if it displays, then you can delete doc when you’re done.
Subject: Solved
Thank you for your suggestion. It was the first step towards a solution, though after all the reason for the problem is an odd one…
I finally found out that the error occurs when the name of the form in the target database I use to display the document is identical with the alias name of an image ressource in the current database. I wouldn’t mind if you didn’t believe me, since it was hard for myself to believe .
BTW the error occurs also when target database and current database are identical.
Ruedi