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

Contains methods and constructors for working with information about a row limit filter.

Namespace

Reports

TopRows Constructors

The following are constructors for TopRows.

TopRows(rowLimit, direction)

Creates an instance of the Reports.TopRows class using the specified parameters.

Signature

public TopRows(Integer rowLimit, Reports.ColumnSortOrder direction)

Parameters

TopRows()

Creates an instance of the Reports.TopRows class. You can then set values by using the class’s set methods.

Signature

public TopRows()

TopRows Methods

The following are methods for TopRows.

getDirection()

Returns the sort order of the report rows.

Signature

public Reports.ColumnSortOrder getDirection()

Return Value

Type: Reports.ColumnSortOrder

getRowLimit()

Returns the maximum number of rows shown in the report.

Signature

public Integer getRowLimit()

Return Value

Type: Integer

setDirection(value)

Sets the sort order of the report’s rows.

Signature

public void setDirection(String value)

Parameters

Return Value

Type: void

setDirection(direction)

Sets the sort order of the report’s rows.

Signature

public void setDirection(Reports.ColumnSortOrder direction)

Parameters

Return Value

Type: void

setRowLimit(rowLimit)

Sets the maximum number of rows included in the report.

Signature

public void setRowLimit(Integer rowLimit)

Parameters

Return Value

Type: void

toString()

Returns a string.

Signature

public String toString()

Return Value

Type: String