| 4D v18dataClass.getInfo( ) | ||||||||||||||
|  | 
    4D v18
 dataClass.getInfo( ) 
         | |||||||||||||
| Property | Type | Description | 
| name | string | Name of the dataclass | 
| primaryKey | string | Name of the primary key of the dataclass | 
| tableNumber | number | Internal 4D table number | 
 C_OBJECT($1;$e;$status)
 $e:=$1 //$1 is an entity
 
 computeEmployeeNumber($e) //do some actions on entity
 
 $status:=$e.save()
 if($status.success)
    ALERT("Record updated in table "+$e.getDataClass().getInfo().name)
 End if C_OBJECT($es;$settings)
 
 $settings:=New object
 $settings.parameters:=New object("receivedIds";getIds())
 $settings.attributes:=New object("pk";ds.Clients.getInfo().primaryKey)
 $es:=ds.Clients.query(":pk in :receivedIds";$settings) C_TEXT($pk)
 C_OBJECT($dataClassAttribute)
 
 $pk:=ds.Employee.getInfo().primaryKey
 $dataClassAttribute:=ds.Employee[$pk] // If needed the attribute matching the primary key is accessible
									4D Blog - ORDA member methods to get the structure information
									
									dataStore.getInfo( )
									
									entitySelection.getDataClass( )
									
	Product:  4D
	Theme:  ORDA - DataClass
	
        
        
	
	
	
	4D Language Reference ( 4D v18)
	
	
	
 Add a comment
Add a comment