A start object and event handler can be selected on the Advanced Settings page in the business application creation wizard:
Set the parameters in the sections:
Handler. Set up event handler:
Unit. In the drop-down list select a Fore unit to execute an operation when a specific event occurs. For example, when a specific event occurs, an information message should be displayed. The unit is processed on opening the business application and is tailored to needs of a certain application project to enhance its functionality. The unit should be first created and added to internal structure of business application.
The example of unit:
Public Class BusinessApplicationEvents1: BusinessApplicationEvents
Public Sub OnAfterLogin(BP_IDENT: string);
Begin
Debug.WriteLine("OnAfterLogin");
End Sub OnAfterLogin;
End Class BusinessApplicationEvents1;
Class. In the drop-down list select a class inherited from the BusinessApplicationEvents class and that implements its events. It is set by an application developer in the Fore unit.
NOTE. Event handling can be set up for various objects, for example, in regular reports.
Start Object. In the Object drop-down list select the object shortcut in the navigation structure, which contents will be displayed on opening the business application in the web interface. A start object can be:
To save the determined settings, click the Save button.
After selecting the start object and event handler open the business application in the web browser.
See also:
Building Business Application in the Web Application | Working with Ready Business Application