Agent print output and brackets

Hi. I am using a WebQuerySave agent and I would like to use absolute redirection to send a response page (form) directly to the browser from the agent.

If I use the following format for the print statement, the redirection works, but the URL gets sent to the browser, and the browser then requests the page from the server:

Print “[http://server/db.nsf/formname?OpenForm]”

I thought that if I used double brackets, the page would get sent directly to the browser. Instead, the URL string gets printed to the page instead of the page HTML being rendered by the browser:

(Does not work)

Print “[[http://server/db.nsf/formname?OpenForm]]”

Does anybody know why double brackets do not work? I am using ND6.

Thank you.

Brendan

Subject: Agent print output and brackets

Brendan,

If you put too many or too few quotes inside a complex string concatenation with formulas, etc, does it work? No!

It’s the same reason. Use single brackets, and the parser will understand.

Marcus

Subject: RE: Agent print output and brackets

Thanks, Marcus. I have a book from a Domino web class that I took last year that says that both single and double brackets are valid with the Print statement inside a WebQuerySave agent, and each performs a slightly different function.

It appears that this is not the case, but it does not seem to be a misprint in the book, because there are separate explanations for each.

I will stay with the single brackets :slight_smile:

Thanks!!

Subject: Agent print output and brackets

A redirect URL with double brackets is an internal server redirect – the “http://server/” part is not internal server stuff. If your location were:

Print “[[db.nsf/formname?openform]]”

it should work.