The Sort tool is a BI Beans thin bean, for use in an HTML-client application. It allows users to sort the dimension members that appear in a thin Dataview
.
To use the Sort tool, you must use BI Beans OLAP beans to specify data for a view.
The ThinBeanUI
implementation of the Sort tool is the oracle.dss.thin.beans.tools.query.SortTool
class. The UINode
for the Sort tool is oracle.dss.thin.beans.tools.query.SortToolBean
.
To render the Sort tool, your servlet application must associate
the SortTool
object with the SortToolBean
object.
The JSP tag for this tool is the SortTool
tag. In the UIX Language, the definition element is the sortToolDef element,
and the UINode
is the sortTool element.
The SortTool
should be stored
in the HTTP session.
When you use the View Toolbar, you do not need to instantiate a SortTool
or the SortToolBean
. The View Toolbar instantiates and renders the Sort tool and handles its events.
To use the Sort tool outside of the View Toolbar, instantiate the SortTool
and call its setView
method to specify the thin presentation bean that is displayed with the tool.
The SortTool
generates the SORT_EVENT
, which is defined in the oracle.dss.thin.BIConstants
interface. The SortTool
also handles this event.
The SortTool
handles the SORT_EVENT
by sorting the specified dimension. It performs the sort by adding a SortStep
to the Selection
for the dimension.