hello everyone,
i have the following code in a postopen statement, that should put a value to get a count of the document, but the fieldsettext doesn’t put any value, with the script debugger, var has a the correct value, but nothing happend to my source.doccount (text field editable)
Sub Postopen(Source As Notesuidocument)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Dim var As String
Set db = session.CurrentDatabase
Set view = db.GetView( "doc count")
Set doc = view.GetLastDocument
var = doc.num(0) +1
Call source.FieldSetText ( "doccount" , var)
End Sub
thanks for all help