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.
Example:
If ExpenseBill.IsNew() Then
ExpenseBill.Write();
EndIf;