IPivot.RankType

Fore Syntax

RankType: PivotRankType;

Fore.NET Syntax

RankType: Prognoz.Platform.Interop.Pivot.PivotRankType;

Description

The RankType property determines a method of data ranking.

Comments

The area of ranking is specified in the RankAreaType property.

Fore Example

Executing the example requires a form with the Button1 button, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1, which is used as a data source for TabSheetBox.

Sub Button1nClick(Sender: Object; Args: IMouseEventArgs);
Var
    OLAP: IEaxAnalyzer;
    Pivot: IPivot;
Begin
    OLAP := UiErAnalyzer1.Instance As IEaxAnalyzer;
    Pivot := OLAP.Pivot;
    Pivot.RankType := PivotRankType.Asc;
    Pivot.RankAreaType := PivotValueArea.Row;
End Sub Button1nClick;

On clicking the button data is ranked by row values in the table.

Fore.NET Example

Executing the example requires a form with the Button1 button, the TabSheetBoxNet component and the UiErAnalyzerNet component named UiErAnalyzerNet1, which is used as a data source for TabSheetBoxNet.

Imports Prognoz.Platform.Forms.Net;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Pivot;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    OLAP: IEaxAnalyzer;
    Pivot: IPivot;
Begin
    OLAP := UiErAnalyzerNet1.AnalyzerUi.Instance As IEaxAnalyzer;
    Pivot := OLAP.Pivot;
    Pivot.RankType := PivotRankType.prtAsc;
    Pivot.RankAreaType := PivotValueArea.pvaRow;
End Sub;

On clicking the button data is ranked by row values in the table.

See also:

IPivot