Hi There,
I tried solution as mentioned in, http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/7ac6e09aef56909a85256eb4004b0e3d?OpenDocument
but could not make it work. I am having custom login form, and session authentication is activated. All I want is whenever any one logs in via custom login, update a field value with today’s date in one of the database. I am calling an agent on WebQuerySave event of a customloginform, but some how it is not working, can any one guide me? Custom Login form, is nothing but a customized verision of a form from dclf, which was in Sandbox.
I have an agent which has following code,
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Dim doc1 As NotesDocument
Dim user As String
Set doc1 = session.DocumentContext
Set db = session.GetDatabase(“”, “db1.nsf”)
Set view = db.GetView (“LookupView”)
user$ = doc1.Username(0)
Set doc = view.GetDocumentByKey (user$ )
If Not (doc Is Nothing) Then
Call doc.ReplaceItemValue ( “LoggedDate”, Today )
Call doc.Save(True, True)
End If
End Sub
Any idea why the Loggeddate is not getting updated?
Thanks
MS