This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19.8
dataClass.all( )

dataClass.all( ) 


 

dataClass.all ( {settings} ) -> Result 
Parameter Type   Description
settings  Object in Build option: context
Result  EntitySelection in References on all entities related to the Dataclass

The dataClass.all( ) method queries the datastore to find all the entities related to the dataclass and returns them as an entity selection.

The entities are returned in the default order, which is intially the order in which they were created. Note however that, if entities have been deleted and new ones added, the default order does not reflect the creation order anymore.

If no corresponding entity is found, an empty entity selection is returned.

Lazy loading is applied.

In the optional settings parameter, you can pass an object containing additional options. The following property is supported:

PropertyTypeDescription
contextTextLabel for the optimization context applied to the entity selection. This context will be used by the code that handles the entity selection so that it can benefit from the optimization. This feature is designed for ORDA client/server processing; for more information, please refer to the Client/server optimization section.

Example  

 C_OBJECT($allEmp)
 $allEmp:=ds.Employee.all()



See also 

dataClass.query( )

 
PROPERTIES 

Product: 4D
Theme: ORDA - DataClass

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17
Modified: 4D v17 R5

 
ARTICLE USAGE

4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)
4D Language Reference ( 4D v19.4)
4D Language Reference ( 4D v19.5)
4D Language Reference ( 4D v19.6)
4D Language Reference ( 4D v19.7)
4D Language Reference ( 4D v19.8)