CatalogRef.<Catalog name>.GetObject

Syntax:

GetObject()

Returned value:

Type: CatalogObject.; 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, by reference, the object used for reading, modifying, adding and deleting a catalog.

Availability:

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

Example:

NomencratureTypes = Enums.NomencratureTypes;
If 
ArticleRefernce.NomencratureType = NomencratureTypes.EmptyRef() Then
    Object = ArticleRefernce.GetObject();
    Object.NomencratureType = NomencratureTypes.Article;
    Try
        Object.Write();
    Except
        DoMessageBox("Can't write object - """ + Object + """
                      |"
 + ErrorDescription(),60);
    EndTry;
EndIf
;


    

1C:Enterprise Developer's Community