Newer Version Available

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

ListViewColumn

Contains metadata about a single list view column.
The ListViewColumn object is returned by the describeSoqlListViews() and executeListView() calls. It has the following properties:
Name Type Description
ascendingLabel string The localized type-specific label for sorting the column in ascending order. For example: “A-Z” for a text field, or “Low to High” for a numeric field. Set to null if the column isn’t sortable.
descendingLabel string The localized type-specific label for sorting the column in ascending order. For example: “Z-A” for a text field, or “High to Low” for a numeric field. Set to null if the column is not sortable.
fieldNameOrPath string The field name or SOQL field path for the column.
hidden boolean If true, specifies that the column is not displayed, and is present only to support the display of other columns or other client-side logic.
label string The localized display label for the column.
selectListItem string The SOQL SELECT item for the column. The item might differ from the field name or path, due to display formatting (for example, toLabel for picklists).
sortDirection orderByDirection An enumerated value, one of the following if the column is sortable:
  • ascending
  • descending
Set to null if the column is not sortable.
sortIndex int The zero-based index that indicates the column’s position within a multilevel sort, or null if the records are not sorted by the column.
sortable boolean Whether the column is sortable, in which case it might be referenced in the ExecuteListView orderBy parameter.
type FieldType The column data type.