Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Difference Between New Document and Edit Existing

Forum

Search UsersRules
Difference Between New Document and Edit Existing
#1
Active user
Points:: 2
Joined:: Sep 16, 2011

How to find out in the form module, if the new document is created or the existing one is opened for editing?

Profile
#2
Active user
Points:: 1
Joined:: Jul 20, 2011

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;

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.