Selection of documents on web and running an agent

hi!I have to display a view on web, the user will select some documents and click on a button which will generate html file based on the selected documents.

i have the following code

Dim s As New NotesSession

Dim db As NotesDatabase

Dim dc As NotesDocumentCollection

Dim doc As NotesDocument

Set db = s.CurrentDatabase

Set dc = db.UnprocessedDocuments

Set doc = dc.GetFirstDocument

Do While Not(doc Is Nothing)

{some code}	

Set doc = dc.GetNextDocument(doc)

Loop

but i dont get the value of doc…

is there any other way to access the selected docs on the web.

Subject: selection of documents on web and running an agent

Hi ShradhaThere is no way for Domino to know which documents you have selected, assuming you are using the view applet.

What I normally do is, use an HTML view with the first column as checkboxes with Doc UNIDs as values. I then pass these values to the agent as arguments and access them within the agent via the Query_String CGI variable.

Hope this makes sense.

Regards

Arshad