This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19.8
entity.isNew( )

entity.isNew( ) 


 

entity.isNew () -> Result 
Parameter Type   Description
Result  Boolean in True if entity has just been created and not yet saved. Otherwise, False.

The entity.isNew( ) method returns true if the entity to which it is applied has just been created and has not yet been saved in the datastore. Otherwise, it returns False.

Example  

 C_OBJECT($emp)
 
 $emp:=ds.Employee.new()
 
 If($emp.isNew())
    ALERT("This is a new entity")
 End if



See also 

entity.save( )

 
PROPERTIES 

Product: 4D
Theme: ORDA - Entity

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17

 
ARTICLE USAGE

4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)
4D Language Reference ( 4D v19.4)
4D Language Reference ( 4D v19.5)
4D Language Reference ( 4D v19.6)
4D Language Reference ( 4D v19.7)
4D Language Reference ( 4D v19.8)