You need to sign in to do that
Don't have an account?
Vijay Nagarathinam
Delete attachment
Hi,
I want to show the all the attachments in a visualforce page. If I click "X" image then corresponding attachment will be deleted in salesforce.
Please let me know how to achieve this.
Thanks,
Vijay
I want to show the all the attachments in a visualforce page. If I click "X" image then corresponding attachment will be deleted in salesforce.
Please let me know how to achieve this.
Thanks,
Vijay
You can do this using Apex:commandLink when you will click on the cross button pass the attachment id in parameter and call apex class method which will be responsible for deleting the attachment.
http://blog.jeffdouglas.com/2010/03/03/passing-parameters-with-a-commandlink/
Hope this helps :)
Thanks!
AMit
https://developer.salesforce.com/forums/?id=906F000000096SfIAI
https://developer.salesforce.com/forums/?id=906F000000099XCIAY