Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.87 KB

GetFormMethod.md

File metadata and controls

44 lines (35 loc) · 1.87 KB

GetForm method call (GetFormMethod)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Error BSL Major Yes 15 error

Description

To open forms, use the OpenForm global context method (when using the 1C: Enterprise 8.2 platform version and earlier versions, also use OpenFormModal). An alternative method, using the GetForm method, is not recommended.

Examples

Procedure Test()
    Doc = Documents.PlanOperation.CreateDocument();
    Form = Doc.GetForm("DocumentForm"); // here
EndProcedure
Procedure Test2()
    Form = GetForm("CommonForms.MyForm");
EndProcedure

Sources

Source: Standard

Snippets

Diagnostic ignorance in code

// BSLLS:GetFormMethod-off
// BSLLS:GetFormMethod-on

Parameter for config

"GetFormMethod": false