| 4D v18entity.reload( ) | |||||||||||||||||||||||||||||||
| 
 | 
    4D v18
 entity.reload( ) 
         | ||||||||||||||||||||||||||||||
| Property | Type | Description | |
| success | boolean | True if the reload action is successful, False otherwise. | |
| Available only in case of error: | |||
| status(*) | number | Error code, see below | |
| statusText(*) | text | Description of the error, see below | 
(*) The following values can be returned in the status and statusText properties of Result object in case of error:
| Constant | Value | Comment | 
| dk status entity does not exist anymore | 5 | The entity no longer exists in the data. This error can occur in the following cases: 
 Associated statusText: "Entity does not exist anymore" | 
| dk status serious error | 4 | A serious error is a low-level database error (e.g. duplicated key), a hardware error, etc. Associated statusText: "Other error" | 
 C_OBJECT($employee;$employees;$result)
 
 $employees:=ds.Employee.query("lastName=:1";"Hollis")
 $employee:=$employees[0]
 $employee.firstName:="Mary"
 $result:=$employee.reload()
 Case of
    :($result.success)
       ALERT("Reload has been done")
    :($result.status=dk status entity does not exist anymore)
       ALERT("The entity has been dropped")
 End case
	Product:  4D
	Theme:  ORDA - Entity
	
        
        
	
	
	
	
	
	
	
	
	
	4D Language Reference ( 4D v18)
	
	
	
	
	
 Add a comment
Add a comment