DocumentManager.<Document name>

Methods:

CreateDocument
EmptyRef
FindByAttribute
FindByNumber
GetChoiceData
GetChoiceForm
GetForm
GetListForm
GetNewDocumentForm
GetRef
GetTemplate
Select

Events:

ChoiceDataGetProcessing
FormGetProcessing
PresentationFieldsGetProcessing
PresentationGetProcessing

Description:

Used to manage documents as configuration objects. Using this object, you can search documents, get selected documents, create a new document, and work with document forms and templates. You can access this object through the properties of the object DocumentsManager. The full name of the object type is defined using the configuration document name. For example, for the document "Expenses Waybill," the type name will be DocumentManager.ExpensesWaybill.

Availability:

Server, thick client, external connection, Mobile application (server).
Exchange with server is possible.

Example:

Result = Documents.ExpenseBill.FindByNumber(DocNumber, WorkingDate);
If 
Result.IsEmpty() Then
    DoMessageBox("Document not found!");
Else
    Result.GetForm().Open();
EndIf
;

See also:

DocumentsManager, property <Document name>
DocumentObject, method SetNewObjectRef
DocumentObject, method GetNewObjectRef
DocumentRef, method UUID

    

1C:Enterprise Developer's Community