Hi there!
I’m testing out the functionality of profile documents on the web.
-
I’ve created a form which contains all of the required fields. I then disabled the form display properties ‘Include in menu’ and ‘Include in search builder’.
-
I then created a new form that contains the same fields, but left the default display settings. This second form is the one that my users will edit over the web.
-
When the users have made their selections, they hit the save button that launches a separate @SetProfileField formula for each field on the form. (ex. @SetProfileField (“Form1”;“Field1”;Field1;@UserName);@SetProfileField (“Form1”;“Field2”;Field2;@UserName), etc.)
-
To test that my values were being stored properly, I created a computed text on a page with the formula @GetProfileField(“Form1”;“Field1”;@UserName)
The problem that I’m having is when I refresh the page, the computed text displays something different every time. I then tried to delete these test profile documents from my database using the following agent, but my computed text is still showing the values in my profile document
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocumentCollection
Set db = session.CurrentDatabase
Set doc = db.GetProfileDocCollection("Profile")
Call doc.RemoveAll(True)
End Sub
Any ideas? This is a nifty tool and I really want to get the hang of it.
Thanks!
Gérald Gallant