+ Start a Discussion
Nitish 73Nitish 73 

Pass Select checkbox parameters to Controller

Hi All,

I have a visualforce page which displays thumbnails of the attached images to that record. I put up checkboxes under each thumbnail to select the ones the user wants to delete, and have a remove button at the bottom. I want to pass the parameters of the selected checkboxes into the controller and delete only the selected ones. How can I achieve this ?

Any help is much appreciated. Thanks
Best Answer chosen by Nitish 73
sharathchandra thukkanisharathchandra thukkani
You can use wrapper class for this where checkbox and attachment object can be wrapped together and do the things. 

Refer below link 

https://developer.salesforce.com/page/Wrapper_Class

All Answers

sharathchandra thukkanisharathchandra thukkani
You can use wrapper class for this where checkbox and attachment object can be wrapped together and do the things. 

Refer below link 

https://developer.salesforce.com/page/Wrapper_Class
This was selected as the best answer
Nitish 73Nitish 73
Thanks Sharath. I got it working now. Much appreciated