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
jsorribasjsorribas 

Recover selected contacts from a VisualForce page

Hi all,

 

I am trying to recover some Contacts form a Visualforce page through an Apex class.

 

Since I click on the Contacts tab, I get to a view list where some contact are selected by their checkbox. A new button has been added to the View List to take these contacts to another page. When I get this page, the contacts are shown in a pageBlockTable. How do I get to recover these contacts from the extension Apex page?

 

Thanks in advance

Best Answer chosen by Admin (Salesforce Developers) 
jsorribasjsorribas

Solved !!

 

list<Contact> contactos = controller.getSelected()

 

Thanks

All Answers

kritinkritin

what do you mean by recover. Do you want to edit/modify/delete contacts or something else.

amidstcloudamidstcloud

Is there any other condition . or . u need to fetch all the contact from  contact Object those have check box checked .  

 

Please provide a descriptive exaplaination for better understandging . 

 

 

jsorribasjsorribas

Solved !!

 

list<Contact> contactos = controller.getSelected()

 

Thanks

This was selected as the best answer