This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.6
FORM SET ENTRY ORDER
|
FORM SET ENTRY ORDER ( objectNames {; pageNumber} ) | ||||||||
Parameter | Type | Description | ||||||
objectNames | Text array |
![]() |
Array of object names in their expected entry order | |||||
pageNumber | Longint |
![]() |
Number of the page to set the entry order (current page if omitted) | |||||
The FORM SET ENTRY ORDER command allows to set dynamically the entry order of the current form for the current process based upon the objectNames array.
Pass in objectNames an array containing the names of form objects to include in the entry order. The order of objects in the array defines the form entry order. Any valid form objects belonging to the current form can be listed. An object is valid if:
If an invalid object is detected at runtime, it is simply ignored and 4D will try to use the next valid object in the objectNames array. You can know the actual entry order of the current page (based upon valid objects) using the FORM GET ENTRY ORDER command with the * parameter.
Optionnally, you can pass the pageNumber for which to set the entry order. If omitted, the command is applied to the current page.
Notes:
About the data entry order
The data entry order is the order in which fields, subforms, and all other active objects are selected as the user hits the Tab or the Carriage return key in a form. Reverse data entry order is also available by pressing the Shift+Tab or Shift+Carriage return keys. Entry order can be set by default or modified in the Form editor. For more information, please refer to the Modifying data entry order section in the Design Reference manual.
You want to set the entry order of objects in the form based upon their names:
ARRAY TEXT(tabNames;0)
FORM GET OBJECTS(tabNames;Form current page+Form inherited) //get form object names
SORT ARRAY(tabNames;>) //sort the names in ascending order
FORM SET ENTRY ORDER(tabNames) //use the alphabetical order for entry order
//non-focusable objects are ignored
Product: 4D
Theme: Forms
Number:
1468
Created: 4D v16 R4
4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)