function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shivani Thakur 32Shivani Thakur 32 

The table showing the attachments should have link to delete an attachment record?

Best Answer chosen by Shivani Thakur 32
AbhishekAbhishek (Salesforce Developers) 
You can do this using Apex:commandLink when you will click on the cross button pass the attachment id in parameter and call the apex class method which will be responsible for deleting the attachment.

http://blog.jeffdouglas.com/2010/03/03/passing-parameters-with-a-commandlink/


Check this too,

https://developer.salesforce.com/forums/?id=906F000000096SfIAI

https://developer.salesforce.com/forums/?id=906F000000099XCIAY


It might help you.

All Answers

AbhishekAbhishek (Salesforce Developers) 
You can do this using Apex:commandLink when you will click on the cross button pass the attachment id in parameter and call the apex class method which will be responsible for deleting the attachment.

http://blog.jeffdouglas.com/2010/03/03/passing-parameters-with-a-commandlink/


Check this too,

https://developer.salesforce.com/forums/?id=906F000000096SfIAI

https://developer.salesforce.com/forums/?id=906F000000099XCIAY


It might help you.
This was selected as the best answer
Shivani Thakur 32Shivani Thakur 32
Thnks!!!