Creating response document on web from View Action

Hi, I am trying to call an agent Test like this from an action button. I find that the agent is not called.

var dbUrl = ‘’;

if (iIndex > 0) {

	dbUrl = location.href.substring(0, iIndex);

	dbUrl = dbUrl + '.nsf';

} else {

	dbUrl = location.href;

}

window.location = dbUrl + ‘/Test?penAgent&docID=’+docID

  1. How do I ensure that the agent opens a new window

  2. How do I parse the value of docID in a simple way in the agent

Thanks for the help.

Subject: Creating response document on web from View Action

  1. How do I parse the value of docID in a simple way in the agent

You could lookup “CGI variables” in the Domino Designer online help.

Or perhaps use the class I posted on my blog at Parse URL in Domino agent – TexasSwede

I really should rewrite that class, I was still on R5 when I wrote it, so today I would use Split() instead of all that string handling…

Subject: Creating response document on web from View Action

Spelling mistake

/Test?OpenAgent&docID='+docID

  1. How do I ensure that the agent opens a new window

Use window.open

  1. How do I parse the value of docID in a simple way in the agent

Aassign it to a javascript variable using computing text on the form.