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.
  • TopRows()
    Creates an instance of the Reports.TopRows class. You can then set values by using the class’s set methods.

TopRows(rowLimit, direction)

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

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()

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

value
Type: String
For possible values, see Reports.ColumnSortOrder.

Return Value

Type: void

setDirection(direction)

Sets the sort order of the report’s rows.

Signature

public void setDirection(Reports.ColumnSortOrder direction)

Parameters

direction
Type: Reports.ColumnSortOrder

Return Value

Type: void

setRowLimit(rowLimit)

Sets the maximum number of rows included in the report.

Signature

public void setRowLimit(Integer rowLimit)

Parameters

rowLimit
Type: Integer

Return Value

Type: void

toString()

Returns a string.

Signature

public String toString()

Return Value

Type: String