WebQuerySave agent not running

I have a web page (form) that has a link which opens up a popup dialog (using window.open). This dialog is a Notes form and it has a WebQuerySave agent. Sometimes when I save this form, the agent runs, sometimes it doesn’t. I’ve gone through the Troubleshooting Agents FAQ and nothing in there seemed to resolve the issue.

To save the form, I have a HTML button which runs a Javascript function. One of the entries in the function is “document.forms[0].submit()”. The other items in the function work, so I know that the function is being called and processed properly. And sometimes the agent does run, but more than half the time it doesn’t.

The agent is a Java agent (I’ve rewritten in LotusScript but it still doesn’t run consistently). The agent properties are:

“Agent list selection”

“Target: None”

“Shared”

“1 - Do not allow restricted operations”

“All readers and above”

And my ID (which the agent is signed by) has the proper rights in the server document to be able to run agents on the server.

I am logged in and my username has Manager rights. There are no restricted operations in this agent. This agent basically just saves the information from the opened form into another Notes document (or creates one if necessary).

I do have a SaveOptions field on the form which is = “0”.

When the agent does run, it runs without any problems.

Any thoughts?

TIA - Chris

Subject: WebQuerySave agent not running

Check the no. of concurrent agents the server can run at a time. May be the agmr is not free at the time to run your agent as it is running some other agent… as this is webquery it runs on server…

HTH

Keshava

Subject: RE: WebQuerySave agent not running

Thanks for your posting, but this isn’t the issue. Any other thoughts?

Subject: WebQuerySave agent not running

What happens when the agent doesn’t run? What’s returned to the user? If the user is thrown back to the default database open condition, then I’d take a serious look at formulas on the form, not the agent.

Subject: WebQuerySave agent not running

Check to make sure your Agent is the one closing the window or redirecting the browser and NOT the javascript that is calling the agent. Javascript won’t “always” wait until the previous command comes back - especially “submit()”.

Thus,

document.submit(); //expecting Lotus agent to run

window.close(); //followed by close the browser window

is bad.

  • Matt

Subject: RE: WebQuerySave agent not running

Thanks for the info. This seems to be the issue.