DocumentSelection.<Document name>.GetObject

Syntax:

GetObject()

Returned value:

Type: DocumentObject.; Undefined.
Undefined - object is not present in the base (for example, when data exchange is performed or after direct deletion of object, which has references).

Description:

Obtains an object for reading, modifying, adding and deleting a document, at which the selection is currently positioned.

Availability:

Server, thick client, external connection, Mobile application (server).

Example:

DocModel = Undefined;
DocSelection = Documents.WriteoffArticles.Select(BegDate, EndDate);
While 
DocSelection.Next() Do
    If DocSelection.Posted Then
        If DocSelection.Organization = Organization Then
            DocModel = DocSelection.GetObject();
            Break
;
        EndIf
;
    EndIf
;
EndDo
;


    

1C:Enterprise Developer's Community