Greetings!!i’m quite new with Notes, so this could be a stupid question…
i have multiple database and every one have is own profile document. i would like to make another db where i can access all the profile documents.
i tried making a link to the document but i can’t load the document with his Key…
thx a lot.
Subject: Profile Documents of multiple DBs
Hi,If you would like to access profile document in another db, you have to set the target db and after that set profile document by method getProfileDocument from class Notesdatabase.
For example:
Dim session As New Notessession
Dim targetdb As Notesdatabase
Dim profileDoc As Notesdocument
Dim retVal As String
set targetdb = session.Getdatabase(<serverName>,<filepath>)
Set profileDoc = targetdb.GetProfileDocument(<nameOfForm>)
retVal = profileDoc.GetItemValue(<fieldName>)(0)
Have a nice day,
Steve
Subject: RE: Profile Documents of multiple DBs
I also recommend taking a look at the Agent FAQ notes about profile documents to avoid common misunderstanding what profile documents are not well suited for (e.g. counters). Agent FAQ is under resources on the right hand side column.