Mass updating records with a custom list controller validating event form close

Posted by / 29-Dec-2019 22:31

Mass updating records with a custom list controller

We checked in Salesforce and we found that this functionality is available in Salesforce only for standard Salesforce objects.

What if I want this functionality for records of Custom Objects?

get Record() Returns the s Object that represents the changes to the selected records. save() Inserts new records or updates existing records that have been changed.

This retrieves the prototype object contained within the class, and is used for performing mass updates. get Result Size() Returns the number of records in the set. After this operation is finished, it returns a Page Reference to the original page, if known, or the home page.

For more information, please contact us at [email protected]

get List View Options() Returns a list of the listviews available to the current user.

get Page Number() Returns the page number of the current page set. get Page Size() Returns the number of records included in each page set.

Steps to Mass delete records of a particular object: In below code example, we have created Mass Delete button for deleting records of Account object.

You can refer this code to do it for your custom object.

mass updating records with a custom list controller-51mass updating records with a custom list controller-11mass updating records with a custom list controller-63

One thought on “mass updating records with a custom list controller”