I create a new field dvalue in Memo form and create an agent which will modify the new filed dvalue using the following code
Sub Initialize()
Dim s As New Notessession
Dim doc As Notesdocument
Dim st As String
'DocumentContext is the in-memory document when the agent triggers
Set doc = s.DocumentContext
doc.~dvalue = "10"
End Sub
But this agent does not work, it can not modify the value of dvalue. Please tell me what’s wrong with the code or operation?
Thanks in advance.