Delete documents on web

Hi All,

I need to delete selected documents on web, for this i have a button which has a code as;

@command(MoveToTrash);

@command(Emptyrash);

@command(ViewRefreshFields)

the documents are getting deleted but the page is getting lost

how do i redirect on the page whose documents are deleted

Thanks,

Zafar

Subject: Don’t Refresh

Just include:

@Command([MoveToTrash]);

@Command([EmptyTrash]);

in your view Action button.

Subject: RE: Don’t Refresh

Hi Lawrence Sprowls,

Thanks a lot thats working.

Can you tell me how to delete a document on web using javascript.

Thanks,

Zafar