4D v17.4Create entity selection |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v17.4
Create entity selection
|
Create entity selection ( dsTable ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
dsTable | Table |
![]() |
Table in the 4D database whose current selection will be used to build the entity selection | |||||
Function result | EntitySelection |
![]() |
Entity selection matching the dataclass related to the given table | |||||
The Create entity selection command builds and returns a new entity selection related to the dataclass matching the given dsTable, according to the current selection of this table.
If the current selection is sorted, an ordered entity selection is created (the order of the current selection is kept). If the current selection is unsorted, an unordered entity selection is created. For more information, please refer to the Ordered vs Unordered entity selections paragraph in the 4D Developer Guide.
C_OBJECT($employees)
ALL RECORDS([Employee])
$employees:=Create entity selection([Employee])
// The $employees entity selection now contains a set of reference on all entities related to the Employee dataclass
Product: 4D
Theme: ORDA - EntitySelection
Number:
1512
Created: 4D v17
4D Language Reference ( 4D v17)
4D Language Reference ( 4D v17.1)
4D Language Reference ( 4D v17.2)
4D Language Reference ( 4D v17.3)
4D Language Reference ( 4D v17.4)