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

Home

 
4D v19.8
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 cannot be used with a Remote datastore.

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 selectionThis command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17

 
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)