4D v18

entity.first( )

Inicio

 
4D v18
entity.first( )

entity.first( )  


 

El método entity.first( )devuelve una referencia a la entidad en la primera posición de la entity selection a la que pertenece la entidad original.

Si la entidad no pertenece a ninguna entity selection existente (es decir, entity.getSelection( ) devuelve Null), el método devuelve un valor Null.

Ejemplo  

 C_OBJECT($employees;$employee;$firstEmployee)
 $employees:=ds.Employee.query("lastName = :1";"H@") //Esta entity selection contiene 3 entidades
 $employee:=$employees[2]
 $firstEmployee:=$employee.first() //$firstEmployee es la primera entidad de la entity selection $employees



Ver también 

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

 
PROPIEDADES 

Producto: 4D
Tema: ORDA - Entity

 
CONTENIDO DE LA PÁGINA 
 
HISTORIA 

 
ARTICLE USAGE

Manual de lenguaje 4D ( 4D v18)