i have a embedded view in the form , i want to delete document from that embedded view as per my requirement(means i may del 1 doc , 2 doc or many). i wrote agent by using db. unprocesseddocument but it is not fetching the document of the embd.view, it is fetching document of the form.
If I remember good, the only way to achieve what you want is to use the action buttons of the embedded view (there is a checkbox in the embedded view property box).
Putting a script anywhere else in the form himself will always fail.