function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
GSBassoGSBasso 

Can the Folder or Document type be used with either the listViews or enhancedList component?

Based on my observations the answer seems to be “no”.

 

The table below shows the result for each combination of component and type.

 

Visualforce Markup

Error Message

<apex:listViews type="Folder" />

common.page.InvalidParameterValueException: Invalid parameter value "Folder" for parameter "type".

<apex:enhancedList  type="Folder" …/>

An internal server error has occurred

<apex:listViews type="Document" />

None (works)

<apex:enhancedList type="Document" …/>

Unsupported type Document encountered.