DocumentObject.<Document name>.IsNew

Syntax:

IsNew()

Returned value:

Type: Boolean.
If True, the document has not yet been written; if False,the document has already been written.

Description:

Determines whether or not document has been written to the database.

Availability:

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

Example:

If ExpenseBill.IsNew() Then
    ExpenseBill.Write();
EndIf
;


    

1C:Enterprise Developer's Community