IPrxReportUserEvents.EventOnBeforeSortEaxGrid

Syntax

EventOnBeforeSortEaxGrid (Args: IUiPrxEaxGridCancelEventArgs);

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 unit. 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;

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

See. also:

IPrxReportUserEvents