Unprocessed Document on web

Hi! All,

I am facing a problem while retriving unprocessed document in agent from web. I have a view which is embeded on a form named “$$viewTemplate for myView” now i checked use view selection margin property. Now when i am viewing this page on the web it will display my view with chekc box at first column. Now I wrote an agent for get the selected document fields to update their values or fetch their values. My agent property is “Action Menu Selection” and target is “All Selected document”. Now in the code is use

           Set doc = collection.GetFirstDocument()   

Msgbox collection.Count 

While Not(doc Is Nothing)

   Msgbox "hi"

  Set doc = collection.GetNextDocument(doc)

Wend

at my console if i see msgbox return me 41 and while loop run till 41…

where as i select the check box either any number of document.

Actually i want to get onlly those document which is selected.

Please help me how do I get the selected document.

One more thing agent i am calling through url

like http://servername/database.nsf/myAgent?openagent.

at the form i also put the html radio button and i want to get the value at my agent side… Is it possible to get the value of radio button?

Please help me. Treat it as an urgent…Please

With Regards,

Vikas K Sinha