4D v19

entity.first()

Home

 
4D v19
entity.first()

entity.first()  


 

Die Methode entity.first() gibt eine Referenz zur Entity an erster Stelle in der Entity-Selection zurück, zu der die ursprüngliche Entity gehört.

Gehört die Entity zu keiner vorhandenen Entity-Selection (z.B. entity.getSelection() gibt Null zurück), gibt die Methode Null zurück.

 C_OBJECT($employees;$employee;$firstEmployee)
 $employees:=ds.Employee.query("lastName = :1";"H@") //Diese Entity-Selection enthält 3 Entities
 $employee:=$employees[2]
 $firstEmployee:=$employee.first() //$firstEmployee ist die erste Entity in der Entity-Selection $employees



Siehe auch 

entity.last()
entity.next()
entity.previous()
entitySelection.first()

 
EIGENSCHAFTEN 

Produkt: 4D
Thema: ORDA - Entity

 
SEITENINHALT 
 
GESCHICHTE 

 
ARTIKELVERWENDUNG

4D Programmiersprache ( 4D v19)
4D Programmiersprache ( 4D v19.1)