I have to run an agent on a Domino server. This agent should be triggered by a user, so I have an agent in the Notes Client which starts the server-agent with the Notesagent.RunOnServer method. But that server agent runs long (more than 30 minutes, probably several hours) and during that time the client is locked.Code in the client agent:
Sub Initialize
REM Declaring vars for session and database
.
.
REM start agent on server
Di m agent as Notesagent
set agent=db.Getagent(“(agentname)”)
call agent.RunOnServer
End Sub
The RunTime properties of the serveragent are:
Trigger: On event
Agent List Selection
Target: None.
I think the agent on the client remains running so long as the serveragent is running. How can I prevent this?
(The serveragent has to runs once. A user has to “trigger” thant serveragent).