IPrxReportUserEvents.EventOnBeforeTransferDataEaxGrid

Syntax

EventOnBeforeTransferDataEaxGrid (Args: IUiPrxExportCancelEventArgs);

EventOnBeforeTransferDataEaxGrid (Args: Prognoz.Platform.Interop.Report.UiPrxEaxGridCancelEventArgs);

Parameters

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

Description

The EventOnBeforeTransferDataEaxGrid method implements the event that occurs before saving changed values of the analytical data area.

Comments

The method enables to redefine the system event that occurs after the ReportEvents.OnBeforeTransferDataEaxGrid 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.

CClass EventsClass: ReportEvents
Public Sub EventOnBeforeTransferDataEaxGrid(Args: IUiPrxEaxGridCancelEventArgs);
    
// The EventOnBeforeTransferDataEaxGrid event handling
    Begin
        WinApplication.InformationBox(
"Analytical area data was changed");
    
End Sub EventOnBeforeTransferDataEaxGrid;
    
// The EventOnAfterTransferDataEaxGrid event handling
    Public Sub EventOnAfterTransferDataEaxGrid(Args: IUiPrxEaxGridEventArgs);
    
Begin
        WinApplication.InformationBox(
"Analytical area data changes were successfully saved");
    
End Sub EventOnAfterTransferDataEaxGrid;
End Class EventsClass;

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

Public Class EventsClass: Parent
    
Public Override Sub OnBeforeTransferDataEaxGrid(EaxGrid: EaxGrid; Var Cancel: Boolean);
    
Begin
        
//Call system event redetermined in the Parent class
        Inherited OnBeforeTransferDataEaxGrid(EaxGrid, Var Cancel);
    
End Sub OnBeforeTransferDataEaxGrid;
    
Public Override Sub OnAfterTransferDataEaxGrid(EaxGrid: EaxGrid);
    
Begin
        
//Call system event redetermined in the Parent class
        Inherited OnAfterTransferDataEaxGrid(EaxGrid);
    
End Sub OnAfterTransferDataEaxGrid;
End Class;
Public Class Parent: PrxForeNetReportUserEventsClass
    
//Redefine system event EventOnBeforeTransferDataEaxGrid
    Public Override Sub EventOnBeforeTransferDataEaxGrid(Args: UiPrxEaxGridCancelEventArgs);
    
Var
        WinAppCls: WinApplicationClass = 
New WinApplicationClassClass();
    
Begin
        
//Handle system event
        WinAppCls.InformationBox("Analytical area data was changed"Null);
    
End Sub EventOnBeforeTransferDataEaxGrid;
    
//Redefine system event EventOnAfterTransferDataEaxGrid
    Public Override Sub EventOnAfterTransferDataEaxGrid(Args: UiPrxEaxGridEventArgs);
    
Var
        WinAppCls: WinApplicationClass = 
New WinApplicationClassClass();
    
Begin
        
//Handle system event
        WinAppCls.InformationBox("Analytical area data changes were successfully saved"Null);
    
End Sub EventOnAfterTransferDataEaxGrid;
End Class Parent;

After executing the example, after the data modification in regular report analytical area, information messages will be displayed before and after changes saving.

See. also:

IPrxReportUserEvents