4D v17.4

Create entity selection

Home

 
4D v17.4
Create entity selection

Create entity selection 


 

Create entity selection ( dsTable ) -> Function result 
Parameter Type   Description
dsTable  Table in Table in the 4D database whose current selection will be used to build the entity selection
Function result  EntitySelection in 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.

If the dsTable is not exposed in ds, an error is returned.

Example  

 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



See also 

USE ENTITY SELECTION

 
PROPERTIES 

Product: 4D
Theme: ORDA - EntitySelection
Number: 1512

 
HISTORY 

New
Created: 4D v17

 
ARTICLE USAGE

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)