Form.BeforeOpen

Syntax:

BeforeOpen(<Cancel>, <StandardProcessing>)

Parameters:

<Cancel>

Type: Boolean.
Form open cancel flag. If the True value parameter is included in the procedure-processing body, then the form will not be opened.
Default value: False.

<StandardProcessing>

Type: Boolean.
This parameter passes a flag indicating whether standard (system) processing of the event is performed. If it is set to False in the body of the handler procedure, standard processing will not occur. Canceling standard processing does not change the way the form opens.
Default value: True.

Description:

Occurs before the form is opened and displayed to the user. In the event handler, it is possible to cancel both the form opening as well as the standard on-open processing.

Note:

At programmatic page scroll mode switching the following should be taken into account:
  • It is allowed to enable the scroll page mode in event handler. Disabling the scroll page mode is ignored in this method.
  • On an attempt to open a form that is already open the BeforeOpen and OnOpen events do not occur.

    

1C:Enterprise Developer's Community