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
Rodolfo Calvo 3Rodolfo Calvo 3 

Merge multiple accounts by selecting a checkbox

Hello team, 
I am currently work on an app where I need to merge multiple ACCOUNT records at once, but I need to do it by selecting specific records. 
Does any one know how could I make this possible? 

for example, having a table with all accounts and by clicking specific records with a checkbox I will select what records I need to merge. 

Please, can somebody help me with this?
Thanks in advance.
thatheraherethatherahere
Hi Rodolfo,

I think you need this: http://mycloudexperience.blogspot.in/2011/03/adding-checkbox-on-pageblocktable.html (http://mycloudexperience.blogspot.in/2011/03/adding-checkbox-on-pageblocktable.html" target="_blank)
Let me know if you need more help here.

- thatherahere
Rodolfo Calvo 3Rodolfo Calvo 3
Interesting article, I guess I might help a lot, but I don't understand where do I select my accounts? So, the button action will show all selected accounts, but I don't get where do I select them. 
thatheraherethatherahere
The tags <apex:inputCheckbox> will re-render itself as a checkbox. When you will run this page, The Boolean variable bind to this inputCheckbox will let you know whether It is selected( isSelected = true ) or not selected ( isSelected = false ).
and in apex class based on this Boolean variable value for each record you will filter the selected records.