Action

Constructors:

Based on procedure

Description:

Used to obtain an action that can be assigned as a control event handler or user interface command.
To process the event, a procedure or a function referred to by the wizard may be called from a form module or common module.
Only a procedure from given form module can be used as a procedure name in a form.

Availability:

Thick client.
Serializable.

Example:

// There is a Generate() procedure in a module. 
// It's performed on click on the "Generate" button
ProcessingPressing = New Action("Generate");
GenerateButton = Controls.GenerateButton;
GenerateButton.SetAction("Press", ProcessingPressing);

See also:

Form, method GetAction
Form, method SetAction
CommandBarButton, property Action
CommandBarButtons, method Add
CommandBarButtons, method Insert
Extension for controls located in a form, method GetAction
Extension for controls located in a form, method SetAction
Extension for controls located in a table box, method GetAction
Extension for controls located in a table box, method SetAction
Spreadsheet document controls extension, method GetAction
Spreadsheet document controls extension, method SetAction

    

1C:Enterprise Developer's Community