Sharing My IT Experience

Tag Archives: Standard List Controller

Standard List controllers allow you to create Visualforce pages that can display or act on a set of records. We can access Standard List controller with the help of recordSetVar which is the attribute of apex:page component.

Note: When you use the standardController attribute on the tag, you can’t use the controller attribute at the same time.

Standard List Controller Actions:

Action

Description

apex:commandButton

This tag is used to create a button

apex:commandLink

This tag is used to create a link.

apex:actionSupport

This tag is used to make an event such as onclick and onmouseover.

apex:actionPoller

It periodically calls an action.

apex:actionFunction

It defines a new JavaScript function.

apex:page

Calls an action when the page is loaded.

Standard List Controller Actions Methods:

Method

Decription

save

Inserts new records or updates existing records that have been changed. After this operation is finished, the save action returns the user to the original page, if known, or the home page.

quicksave

Inserts new records or updates existing records that have been changed. Unlike the save action, quicksave does not redirect the user to another page.

list

Returns a PageReference object of the standard list page, based on the most recently used list filter for that object when the filterId is not specified by the user.

cancel

Aborts an edit operation. After this operation is finished, the cancel action returns the user to the page where the user originally invoked the edit.

first

Displays the first page of records in the set.

last

Displays the last page of records in the set.

next

Displays the next page of records in the set.

previous

Displays the previous page of records in the set.

Here in below example, Visualforce Page is using the standard Controller “Contact”, and recordSetVar is set to “accounts”.