Salesforce DEV-501: Apex and Visualforce Controllers | Enhanced List Component

Enhanced List Component

Question

The list view picklist for an object, including its associated list of records for the currently selected view.

In standard Salesforce applications this component is displayed on the main tab for a particular object.

This component has additional attributes that can be specified, such as the height and rows per page, as compared to <apex:listView>

Note: When an <apex:enhancedList> is rerendered through another component's rerender attribute, the <apex:enhancedList> must be inside of an <apex:outputPanel> component that has its layout attribute set to "block"

The <apex:enhancedList> component is not allowed on pages that have the attribute showHeader set to false.

You can only have five <apex:enhancedList> components on a single page.

Ext JS versions less than 3 should not be included on pages that use this component.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.

The correct answer for this question is B. apex:enhancedList.

The apex:enhancedList component in Salesforce is used to display a list view of records for a particular object. It is similar to the standard Salesforce list view picklist, but has additional attributes that can be specified such as the height and rows per page. The apex:enhancedList component can be used to display records from any object that has a defined list view.

This component is typically displayed on the main tab for a particular object in standard Salesforce applications. It can be used to display a list of records for the currently selected view, including the ability to filter and sort records.

If an apex:enhancedList is rerendered through another component's rerender attribute, it must be inside an apex:outputPanel component that has its layout attribute set to "block". This is because the enhancedList component has its own styling and layout that may conflict with other components on the page.

It is important to note that the apex:enhancedList component is not allowed on pages that have the attribute showHeader set to false. Additionally, there can only be a maximum of five apex:enhancedList components on a single page.

Finally, when using the apex:enhancedList component, it is recommended that Ext JS versions less than 3 should not be included on pages that use this component. This is because the enhancedList component uses Ext JS to provide its functionality, and older versions of Ext JS may not be compatible with the enhancedList component.

In conclusion, the apex:enhancedList component in Salesforce is a powerful tool for displaying a list view of records for a particular object. It has additional attributes that can be specified, but there are also some limitations and best practices that should be followed when using this component.