What is the use of 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. The StandardSetController class also contains a prototype object. This is a single sObject contained within the Visualforce StandardSetController class.

Similarly, it is asked, what is the use of ApexPages StandardController?

The standardController offers out-of-the-box operations like save (either create or update) or delete. Your extension controller can offer custom operations to be performed on the record (in your case, getGreeting ).

Also Know, what is Rerender in Salesforce? ReRender : Rerender is used to refresh a particular section of the visualforce page. We have to just mention the id of the page section (in the Rerender attribute) that needs to be refreshed.

Subsequently, one may also ask, what is a capability of a StandardSetController?

A standard set controller allows pages to update massive amounts of data and records seamlessly. This allows easy and sequential access to important data with the click of a bottom.

What is recordSetVar in Salesforce?

recordSetVar tag in Visualforce Page. recordSetVar attribute in Visual force page: The value of the attribute indicates name of the set of records passed to the page means collection records. This record set can be used in the expressions to return values for display on the page or to perform actions on set of records.

How many types of controllers are there in Salesforce?

There are 3 types of controller (actually 4 but two are variants of the same, standard controller): Standard - these are provided by the platform so you can produce Visualforce pages without writing code.

What is StandardController in Salesforce?

StandardController objects reference the pre-built Visualforce controllers provided by Salesforce. The only time it is necessary to refer to a StandardController object is when defining an extension for a standard controller. StandardController is the data type of the single argument in the extension class constructor.

What is a standard controller?

Standard Controllers. A StandardController object that is automatically provided for standard and all custom objects, bindable to a Visualforce page component with the “standardController” attribute. It provides a reference to a single/list of record to a set of common actions for data processing and default navigation

What is database getQueryLocator in Salesforce?

Database.getQueryLocator returns a Query Locator that runs your selected SOQL query returning list that can be iterated over in bathc apex or used for displaying large sets in VF (allowing things such as pagination).

What is PageReference in Salesforce?

A PageReference is a reference to an instantiation of a page. Among other attributes, PageReferences consist of a URL and a set of query parameter names and values. Use a PageReference object: · To view or set query string parameters and values for a page.

What is controller extension in Salesforce?

Controller extension in Salesforce is an Apex class containing a constructor that is used to add or extend the functionalities of a Standard Controller or custom controller in Salesforce. Extension controller is also used to leverage the functionality of another controller using our own custom logic.

How do I write a test class for controller extension in Salesforce?

Create a Test Class with @isTest annotation. Then create some dummy data relevant to the object used in the controller class. Pass the dummy data to the methods defined in the extension class. Write some positive and negative test scenarios with proper assertions.

How do I use an extension controller in Salesforce?

A controller extension is an Apex class that extends the functionality of a standard or custom controller. Use controller extensions when: You want to leverage the built-in functionality of a standard controller but override one or more actions, such as edit, view, save, or delete. You want to add new actions.

What is pagination in salesforce?

Pagination is the process of taking a complete document or a large number of records in this example and breaking that document/large number of records into separate pages for viewing within the Salesforce. The Salesforce user can click the next tab and go through each new page display the next 10 records.

Which data type or collection of data types can SOQL statements populate or evaluate to?

The SOQL statements can easily populate a single object, an integer as well as a lot of objects. However, it cannot populate a string or a Boolean.

Where can debug log filter settings be set?

Debug log filters can be set up by the filters being linked by the monitored user's name within the web UI. Also, the log filters tab on a class or trigger detail page.

What does reRender mean?

rerender. Verb. (third-person singular simple present rerenders, present participle rerendering, simple past and past participle rerendered) (computing) To render again or anew. There was a slight delay while the program rerendered the image in its new perspective.

What is difference between render and reRender?

Difference between Render, reRender and renderAs. Render: – Is used to show/hide the particular block, output panel or input/output fields based on the condition. Example: – You have 2 fields one is visible and second is hidden, you want the second field to be visible when the first field is filled then use render.

What is Action Region in Salesforce?

actionRegion provides an area of a Visualforce page that decides and separates which components should be processed by the force.com server when an AJAX request is generated. Only the components which are inside actionregion component are processed by server, so it increases visualforce page performance.

What is the difference between pageBlockTable and dataTable?

apex:pageBlockTable represents a table formatted and styled to look like a related list table. apex:dataTable is an unstyled table suitable for use anywhere outside of a apex:pageBlock (but may be used within one).

What is renderer in Salesforce lightning?

Renderer service in lightning component bundle modify the DOM elements which is created by framework for a component. We use custom renderer to change or override the default rendering behaviour of the component. Base component i.e. aura:component has a renderer called componentRenderer.js.

What is Apex outputPanel?

apex:outputPanel. A set of content that is grouped together, rendered with an HTML <span> tag, <div> tag, or neither. Use an <apex:outputPanel> to group components together for AJAX refreshes.

You Might Also Like