4D v19

entity.isNew( )

Accueil

 
4D v19
entity.isNew( )

entity.isNew( )  


 

La méthode entity.isNew( ) renvoie Vrai si l'entité à laquelle elle est appliquée vient d'être créée et n'a pas encore été enregistrée dans le datastore. Sinon, elle renvoie Faux.

Exemple  

 C_OBJECT($emp)
 
 $emp:=ds.Employee.new()
 
 If($emp.isNew())
    ALERT("Ceci est une nouvelle entité")
 End if



Voir aussi  

entity.save( )

 
PROPRIÉTÉS 

Produit : 4D
Thème : ORDA - Entity

 
PAGE CONTENTS 
 
HISTORIQUE 

 
UTILISATION DE L'ARTICLE

4D - Langage ( 4D v19)
4D - Langage ( 4D v19.1)