4D v17.4

entity.isNew( )

Accueil

 
4D v17.4
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_OBJET($emp)
 
 $emp:=ds.Employee.new()
 
 Si($emp.isNew())
    ALERTE("Ceci est une nouvelle entité")
 Fin de si



Voir aussi  

entity.getStamp( )
entity.save( )

 
PROPRIÉTÉS 

Produit : 4D
Thème : ORDA - Entity
Nom intl. : entity.isNew( )

 
PAGE CONTENTS 
 
HISTORIQUE 

 
UTILISATION DE L'ARTICLE

4D - Langage ( 4D v17)
4D - Langage ( 4D v17.1)
4D - Langage ( 4D v17.2)
4D - Langage ( 4D v17.3)
4D - Langage ( 4D v17.4)