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
PappuPappu 

How to change the owner name for selected records?

Hi Guys,

I have created a VF page for a custom sobject list view.

A checkbox field is placed at every row and button (Change Owner) is kept at top of the VFpage (refere the attached)

Now, the user should able to select the record(s) using checkbox field and also change the owner name for selected records by clicking the change owner button.

If a user selects directly the button without select any check box field, a pop up should appear stating "Please select atleast one record".

Kindly suggest me  a code or any reference for this requirement.

Thanks!!!

User-added image
RakeshRakesh (Salesforce Developers) 
HI Pappu,

There are few ways to achieve this. Please refer the below links to get an idea of above requirement.  Please mark this as solved, it may help others, those who are looking for the similar requirement/functionality. 

Thanks,
Rakesh Thota