How we delete a selected documment in embadded view

i have to delete selected document in embadded view or set a delete tag …the problem is that here “db.unprosseseddocument” not working…

please help me its urgent …

Subject: how we delete a selected documment in embadded view

You can just add a button, with the following commands:@Command([MoveToTrash]);

@Command([EmptyTrash])

Make sure your view is set to : “Allow selection of documents” (if you try to do from web).

The other way, will be using agent. But I’m sure you can do the above well enough. Esp. if you’re doing from client

Best Rgds

Subject: RE: how we delete a selected documment in embadded view

I have to set delete tag on selected document in embedded view, for that I make a action button where I call a agent…But problem is that when I use db.unprocssesedDocument it not pick the selected document in embedded view it pick the current opening form in which the embedded view called

Please help me

Its urgent

Thanks

rupesh

Subject: RE: how we delete a selected documment in embadded view

I have to set delete tag on selected document in embedded view, for that I make a action button where I call a agent…But problem is that when I use db.unprocssesedDocument it not pick the selected document in embedded view it pick the current opening form in which the embedded view called

Please help me

Its urgent

Thanks

rupesh

Subject: RE: how we delete a selected documment in embadded view

Hi

Agents normally pick the current document as the one to be processed.

In order to pick the documents that are selected, you may need to use Javascript to call the agents.

Pass the documents’ UNID through Javascript query_string, retrieve them from agent, and process the documents by using: set doc = db.getdocumentbyunid (docunid)

Rgds

Rus