IPrxReportUserEvents.EventOnBeforeSortEaxGrid

Syntax

EventOnBeforeSortEaxGrid (Args: IUiPrxEaxGridCancelEventArgs);

EventOnBeforeSortEaxGrid (Args: Prognoz.Platform.Interop.Report.UiPrxEaxGridCancelEventArgs)

Parameters

Args. The parameter that enables the user to work with event parameters.

Description

The EventOnBeforeSortEaxGrid method implements the event occurring before data sorting in analytical area.

Comments

The method enables to redefine the system event that occurs after the ReportEvents.OnBeforeSortEaxGrid event.

Example

Executing the example requires that the repository contains a regular report with connected module. The connected module and the Parent class must be specified as event handler.

Add links to the Express, Report, Ui system assemblies.

Public Class EventsClass: Parent
    
Public Sub OnBeforeSortEaxGrid(EaxGrid: IEaxGrid; Var Cancel: Boolean);
    
Begin
        
//Call system event redetermined in the Parent class
        Inherited OnBeforeSortEaxGrid(EaxGrid, Cancel);
    
End Sub OnBeforeSortEaxGrid;
    
Public Sub OnAfterSortEaxGrid(EaxGrid: IEaxGrid);
    
Begin
        
//Call system event redetermined in the Parent class
        Inherited OnAfterSortEaxGrid(EaxGrid);
    
End Sub OnAfterSortEaxGrid;
End Class EventsClass;
Public Class Parent: ReportEvents
    
//Redefine the EventOnBeforeSortEaxGrid system event
    Public Sub EventOnBeforeSortEaxGrid(Args: IUiPrxEaxGridCancelEventArgs);
    
Begin
        
//Handle system event
        WinApplication.InformationBox("Analytical area data will be sorted");
    
End Sub EventOnBeforeSortEaxGrid;
    
//Redefine the EventOnAfterSortEaxGrid system event
    Public Sub EventOnAfterSortEaxGrid(Args: IUiPrxEaxGridEventArgs);
    
Begin
        
//Handle system event
        WinApplication.InformationBox("Analytical area data was sorted");
    
End Sub EventOnAfterSortEaxGrid;
End Class Parent;

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Ui;

Public Class EventsClass: Parent
    
Public Override Sub OnBeforeSortEaxGrid(EaxGrid: EaxGrid; Var Cancel: Boolean);
    
Begin
        
//Call system event redetermined in the Parent class
        Inherited OnBeforeSortEaxGrid(EaxGrid, Var Cancel);
    
End Sub OnBeforeSortEaxGrid;
    
Public Override Sub OnAfterSortEaxGrid(EaxGrid: EaxGrid);
    
Begin
        
//Call system event redetermined in the Parent class
        Inherited OnAfterSortEaxGrid(EaxGrid);
    
End Sub OnAfterSortEaxGrid;
End Class;
Public Class Parent: PrxForeNetReportUserEventsClass
    
//Redefine the EventOnBeforeSortEaxGrid system event
    Public Override Sub EventOnBeforeSortEaxGrid(Args: UiPrxEaxGridCancelEventArgs);
    
Var
        WinAppCls: WinApplicationClass = 
New WinApplicationClassClass();
    
Begin
        
//Handle system event
        WinAppCls.InformationBox("Analytical area data will be sorted"Null);
    
End Sub EventOnBeforeSortEaxGrid;
    
//Redefine the EventOnAfterSortEaxGrid system event
    Public Override Sub EventOnAfterSortEaxGrid(Args: UiPrxEaxGridEventArgs);
    
Var
        WinAppCls: WinApplicationClass = 
New WinApplicationClassClass();
    
Begin
        
//Handle system event
        WinAppCls.InformationBox("Analytical area data was sorted"Null);
    
End Sub EventOnAfterSortEaxGrid;
End Class Parent;

After executing the example the information messages will be displayed in regular report before and after sorting of analytical area data.

See. also:

IPrxReportUserEvents