Newer Version Available

This content describes an older version of this product. View Latest

Accessing Data with List Controllers

Once you have associated a page with a list controller, you can refer to the set of records using expression language syntax. For example, to create a simple table of accounts, create a page with the following markup:
This results in a page that lists all the account names in your organization:Result of the example page.

This page does not specify a filter in the request, so the page is displayed with the last used filter. For information on using filters with list controllers, see Using List Views with Standard List Controllers.

Note

As with queries in the Lightning Platform API, you can use expression language syntax to retrieve data from related records. As with standard controllers, you can traverse up to five levels of child-to-parent relationships and one level of parent-to-child relationships.

When using a standard list controller, the returned records sort on the first column of data, as defined by the current view, even if that column is not rendered. When using an extension or custom list controller, you can control the sort method.

No more than 10,000 records can be returned by a standard list controller. Custom controllers can work with larger results sets. See Working with Large Sets of Data.

Note