4D v17.4

entitySelection.isOrdered( )

Home

 
4D v17.4
entitySelection.isOrdered( )

entitySelection.isOrdered( )  


 

The entitySelection.isOrdered( ) method returns true if the entity selection is ordered, and false if it is unordered.

Note: For more information, please refer to the Ordered vs Unordered entity selections paragraph.

Example  

 C_OBJECT($employees;$employee)
 C_BOOLEAN($isOrdered)
 $employees:=ds.Employee.newSelection(dk keep ordered)
 $employee:=ds.Employee.get(714) // Gets the entity with primary key 714
 
  //In an ordered entity selection, we can add the same entity several times (duplications are kept)
 $employees.add($employee)
 $employees.add($employee)
 $employees.add($employee)
 
 $isOrdered:=$employees.isOrdered()
 If($isOrdered)
    ALERT("The entity selection is ordered and contains "+String($employees.length)+" employees")
 End if

 
PROPERTIES 

Product: 4D
Theme: ORDA - EntitySelection

 
PAGE CONTENTS 
 
HISTORY 

 
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)