Form submit buttom as belowRem “Submit”;
@Command([FileSave]);
@Command([FileCloseWindow])
Agent on WQS as below
@Command([ToolsRunMacro]; “WQS01”)
Agent as below. How to set field class to “testing” ?
Sub Initialize
' WQS01 Agent
Dim session As New NotesSession
Dim doc As NotesDocument
Set doc = session.DocumentContext
doc.class(0) = "testing"
End Sub
Subject: How to using WebQuerySave
Agent:
Sub Initialize
’ WQS01 Agent
Dim session As New NotesSession
Dim doc As NotesDocument
Set doc = session.DocumentContext
doc.class = “testing”
call doc.save( true, true )
End Sub
Subject: RE: How to using WebQuerySave
Don’t ever call a save on the DocumentContext document in a WebQuerySave agent!!
The WebQuerySave event is only triggered by a Submit( save) of your web document, and as soon as the agent finishes running, the document will be saved automatically…
Subject: How to using WebQuerySave
Dim session As New NotesSession
Dim doc As NotesDocument
Set doc = session.DocumentContext
doc.class= “testing”
’ if class is a text field then just use the line above. Also you need to make sure that the agents permissions are correct to run on the server.
Subject: RE: How to using WebQuerySave
How to setup ?I try to setup Agent Properties Security on design.
Select Default access for viewing and running this agent for all Reader and about.
And Allow Public Access users to view and run this agnet