Agent RunOnServer question

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).

Subject: Agent RunOnServer question

You might get a better result by setting the property “Run in background client thread” in the agent properties of the agent that is triggered by the user/client.

Subject: Agent RunOnServer question

Did you try “Run in Background client thread” on the Agent’s properties?

Subject: RE: Agent RunOnServer question

Thanks for your replay.

No, I had not tried this property

I will try this.