Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
TopRows Class
Namespace
TopRows Constructors
The following are constructors for TopRows.
TopRows(rowLimit, direction)
Signature
public TopRows(Integer rowLimit, Reports.ColumnSortOrder direction)
Parameters
-
rowLimit:
Type: Integer
The number of rows returned in the report.
-
direction:
Type: Reports.ColumnSortOrder
The sort order of the report rows.
TopRows Methods
The following are methods for TopRows.
getDirection()
Signature
public Reports.ColumnSortOrder getDirection()
Return Value
Type: Reports.ColumnSortOrder
setDirection(value)
Signature
public void setDirection(String value)
Parameters
-
value:
Type: String
For possible values, see Reports.ColumnSortOrder.
Return Value
Type: void
setDirection(direction)
Signature
public void setDirection(Reports.ColumnSortOrder direction)
Parameters
-
direction:
Type: Reports.ColumnSortOrder
Return Value
Type: void
setRowLimit(rowLimit)
Signature
public void setRowLimit(Integer rowLimit)
Parameters
-
rowLimit:
Type: Integer
Return Value
Type: void