Move to Folder on Web

Hi,

I have a view on web. I have written an action button. On click of that button, the document that is selected must go into a folder and it should get deleted from the view. On click of the button document is copied to folder but not deleted from view. I have tried @commands edit clear, movetotrash and refresh fields , but in vain. Can anyone help me on this.

Thanks,

Anil.

Subject: Move to Folder on Web

Documents appear in a view when they match the view selection formula. Try modifing a value in the document as part of your code to move the document to the folder and change your view selection formula to exclude the document based on the modified value.