This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19.8
entity.isNew( )
|
entity.isNew () -> Result | ||||||||
Parameter | Type | Description | ||||||
Result | Boolean |
![]() |
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.
C_OBJECT($emp)
$emp:=ds.Employee.new()
If($emp.isNew())
ALERT("This is a new entity")
End if
Product: 4D
Theme: ORDA - Entity
Created: 4D v17
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)