4D v17.4

USE ENTITY SELECTION

Home

 
4D v17.4
USE ENTITY SELECTION

USE ENTITY SELECTION 


 

USE ENTITY SELECTION ( entitySelection ) 
Parameter Type   Description
entitySelection  EntitySelection in An entity selection

The USE ENTITY SELECTION command updates the current selection of the table matching the dataclass of the entitySelection parameter, according to the content of the entity selection.

This command only works with the local or client/server datastore returned by ds.

Note: After a call to USE ENTITY SELECTION, the first record of the updated current selection (if not empty) becomes the current record, but it is not loaded in memory. If you need to use the values of the fields in the current record, use the LOAD RECORD command after the USE ENTITY SELECTION command.

Example  

 C_OBJECT($entitySel)
 $entitySel:=ds.Employee.query("lastName = :1";"M@") //$entitySel is related to the Employee dataclass
 REDUCE SELECTION([Employee];0)
 USE ENTITY SELECTION($entitySel//The current selection of the Employee table is updated



See also 

Create entity selection

 
PROPERTIES 

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

This command changes the currrent recordThe command changes the current selection

 
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)