Hello,
I would like to be able to access the document profile of a different database that the current one. I would like basically to open it Edit Mode, as an UIDocument …
I have tried to get access to the proper NotesDatabase. But from this point, I don’t know how to open the document profile. Do you have any idea how I could do that ?
Thanks in advance for your answers,
Mathieu REDZIOCH
PS : the best solution would be to just open in UI the document profile and not de default view of this remote database ! Because I know how to access to the document profile of the remote database by calling an OpenDatabase from my UIWorkspace. But I get both the default view and the document profile, and I would like to get only the latter …
Subject: Accessing a document profile in a different NotesDatabase
I’m afraid I don’t really see the problem here.
Will this not work?
Set notesDocument = notesDatabase.GetProfileDocument( profilename$ [, uniqueKey$ ] )
Example:
Dim session As New NotesSession
Dim dbToOpen As NotesDatabase
Dim docProfile As NotesDocument
Set dbToOpen = session.GetDatabase(“server”, “dbname.nsf”)
Set docProfile = dbToOpen.GetProfileDocument(“Name of profile”)
Subject: RE: Accessing a document profile in a different NotesDatabase
Hello,
Actually, this would seem to work on the objects and their properties. The thing is that I wanted to display the document profile in the UIWorkspace, and only the document profile.
I finally got a work around and, in case someone got the same problem as me (maybe I created myself a problem and didn’t see a simple solution, but that’s another question …), I wanted to share with you.
I retrieved the targeted NotesDatabase, then I got a NotesDocumentCollection based on the method GetProfileCollection (as a matter of fact, it’s just one document since I don’t have multiple document profile with the same name). With this new NotesDocument (the only one NotesDocument coming from the NotesDocumentCollection), I choose to EditDocument from the current UIWorkspace, and I finally got my EditProfile alone !!!
Sometimes, I get so confused … now it’s clear !!! Thank you for your help anyway Kenneth !!