DocumentSelection._Document name_.GetObject
GetObject
Syntax
GetObject()
Returned value
Type: DocumentObject.<Document name>, 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), mobile standalone 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;
No comments to display
No comments to display