Contents
What is StandardSetController in Salesforce?
StandardSetController objects allow you to create list controllers similar to, or as extensions of, the pre-built Visualforce list controllers provided by Salesforce.
What is the capability of a StandardSetController?
The maximum record limit for StandardSetController is 10,000 records. Instantiating StandardSetController using a query locator returning more than 10,000 records causes a LimitException to be thrown.
How does the standardsetcontroller work in Visualforce?
The StandardSetController class also contains a prototype object. This is a single sObject contained within the Visualforce StandardSetController class. If the prototype object’s fields are set, those values are used during the save action, meaning that the values are applied to every record in the set controller’s collection.
How to contrast two buttons in Lightning component?
The following example component creates two buttons to contrast an HTML button with , which is a standard Lightning component. Clicking on these buttons updates the text component attribute with the specified values. target.get (“v.label”) refers to the label attribute value on the button.
What causes a limitexception when instantiating standardsetcontroller?
Instantiating StandardSetController using a query locator returning more than 10,000 records causes a LimitException to be thrown. However, instantiating StandardSetController with a list of more than 10,000 records doesn’t throw an exception, and instead truncates the records to the limit.
What’s the maximum record limit for a standardsetcontroller?
This is useful for writing pages that perform mass updates (applying identical changes to fields within a collection of objects). Fields that are required in other Salesforce objects will keep the same requiredness when used by the prototype object. The maximum record limit for StandardSetController is 10,000 records.