Class: SortToken

Oracle.BDD.Portlets.Visualization.Model. SortToken

new SortToken()

Do NOT instantiate this class directly. Token objects should be accessed and modified through the Oracle.BDD.Portlets.Visualization.Model.QueryConfig#getToken function ONLY.
Source:

Extends

Methods

getDataViewKey() → {string}

Gets the token's dataview key
Source:
Returns:
The token's dataview key
Type
string

getSortDirection() → {string}

Gets the sort direction for the token of the given name as either 'ASC' or 'DESC'
Source:
Returns:
The token's sort direction
Type
string

getType() → {string}

Gets the token type (e.g. 'metric', 'dimension', 'sort', data', 'dataview'
Inherited From:
Source:
Returns:
The token's type ('metric', 'dimension', etc.)
Type
string

getValue() → {string|Number}

Gets the value for token of the given name. This is the literal value that replaced the value in the EQL query.
Inherited From:
Source:
Returns:
The token's value
Type
string | Number

setSortDirection(direction)

Sets the sort direction for sort token. Value must be 'ASC' nor 'DESC'.
Parameters:
Name Type Description
direction string 'ASC' or 'DESC'
Source:

setValue(value)

Sets the replacement value for the data token of the given name.
Parameters:
Name Type Description
value string The value to set
Source:

toggleSortDirection()

Toggles the sort direction for the sort token
Source: