WebqueryOpen not running

I’ve got a very straight-forward yet puzzling problem. In my web app, the webqueryopen script is not running on two of my servers. The code is the same on all of them. I put a messagebox on the first line of the agent yet I see nothing written to the log and it is obvious on the screen that it did not run. Any ideas?

Subject: WebqueryOpen not running

All WebQueryOpen output is stopped and wont’ be seen. Create a new field that is written to by the agent then look at that field.

I use this method for displaying web error messages. I trap the runtime error with an On Error. The “errorfield” is then hidden unless it isn’t blank.

Hope that helps.

Subject: RE: WebqueryOpen not running

Since when? I print to the log just fine on my 6.53 box

Subject: Maybe I’m confused. Perhaps its just standard out that is stopped?

Yep… I stand corrected…

Help says:

WebQueryOpen events

A WebQueryOpen event runs the agent before Domino converts a document to HTML and sends it to the browser. Domino ignores any output produced by the agent in this context.

Chuck

Subject: RE: Maybe I’m confused. Perhaps its just standard out that is stopped?

I use text output to a NotesAgentLog

Then in designer I open the agents section and go to Agent > Log and the log is populated with my outputs.

Web Agents won’t run Print commands because the Print method sends output to the browser. While posting a form to the browser this output is ignored.

I’ve been looking at using the Remote Debugger to get a hook into my web agents, but we don’t have a dev server so I haven’t tried it yet. Supposedly you can add a Stop instruction to the agent, and it’ll wait until you connect to the server’s remote debugger to get a debugging console started … you can then skip through the agent like the normal Notes client debugger … wouldn’t that be cool :slight_smile: