Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.33 KB

GetFormMethod.md

File metadata and controls

28 lines (21 loc) · 1.33 KB

GetForm method call (GetFormMethod)

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: Development standards (RU)