Run an agent on a document selected from a view on the web

What is the best way to get an agent to process selected documents within a view on the web, not using a view applet.

I’ve got a few ideas about how to do this but I’m really wanting to know how other people would go about this.

The first idea that I had was to embed the view on a form or use a $ViewTemplateDefault and once I’ve selected the documents from the view, submit the form and run the agent from the WebQuerySave. The problem with this is that it would create a new document of type $ViewTemplateDefault, could put some code after the @Command([ToolsRunMacro] ; “MyAgent” ), but that is messy, and I’m not sure if an @Return would work there anyway.

Could run a scheduled agent to find and destroy all the $ViewTemplateDefault Documents, but … aarrrggg, nasty, writing an agent to clean up a purposly made mess.

Next I thought, maybe there is a way Notes can do this. Haven’t tried it yet, but my first path would be to create a graphic and use javascript to call the agent using “?OpenAgent”, but I can’t really see this working and I’ve not had luck before in passing values to an agent on the web unless they are in a field on the document.

I could use a view action to call the agent as it should have more of a handle to the documents in the view and be able to see which are selected, but view actions don’t look nice.

I’d be very interested to see what alternatives anyone else would care to share or even any corrections to my assumptions.

Thanks

Subject: Run an agent on a document selected from a view on the web

To prevent Domino from creating a document you just have to add a “SaveOptions” field to your form and set it’s default value to “0”.If you want to know more about forms behavior options over the web you should check the cgi topic in designer’s help.