| 4D v18entity.{attributeName} | |||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D v18
 entity.{attributeName} 
         | ||||||||||||||||||||||||||||||||||||||||||||||
| Parameter | Type | Description | ||||||
| entity.{attributeName} | Mixed |   | Current value of the attribute in the entity | |||||
Any dataclass attribute is available as a property of an entity, which stores the attribute value for the entity.
Note: Dataclass attributes can also be reached using the alternate syntax with [ ].
The attribute value type depends on the attribute kind (relation or storage):
Note: For more information on attribute kinds, please refer to the dataClassAttribute.kind property description.
 C_OBJECT($myEntity)
 $myEntity:=ds.Employee.new() //Create a new object of the entity type
 $myEntity.name:="Dupont" // assign 'Dupont' to the 'name' attribute
 $myEntity.firstname:="John" //assign 'John' to the 'firstname' attribute
 $myEntity.save() //save the entity
	Product:  4D
	Theme:  ORDA - Entity
	
        
        
	
	Created:  4D v17
	
	
	
	
	
	
	
	
	4D Language Reference ( 4D v18)
	
	
	
	
	
 Add a comment
Add a comment