This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19.8
dataClass.all( )
|
dataClass.all ( {settings} ) -> Result | ||||||||
Parameter | Type | Description | ||||||
settings | Object |
![]() |
Build option: context | |||||
Result | EntitySelection |
![]() |
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:
Property | Type | Description |
context | Text | Label 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. |
C_OBJECT($allEmp)
$allEmp:=ds.Employee.all()
Product: 4D
Theme: ORDA - DataClass
Created: 4D v17
Modified: 4D v17 R5
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)