OBJECT SET FLYOUT MODE
OBJECT SET FLYOUT MODE ( * ; object : Text ; mode : Text )
OBJECT SET FLYOUT MODE ( object : Variable, Field ; mode : Text )
Parameters
| Parameter | Type | Description | |
|---|---|---|---|
| * | Operator | → | If specified, objectName is a form object name |
| object | Text, Variable, Field | → | Drop-down list object name (if * is specified) or Variable or field (if * is omitted) |
| mode | Text | → | Flyout mode: "automatic", "popup", or "pulldown" |
History
| Release | Changes |
|---|---|
| 21 R6 | Created |
Description
OBJECT SET FLYOUT MODE sets the flyout display mode of a drop-down list object at runtime.
On Windows, this command requires that the FluentUI rendering mode is used.
In mode you can use one of the following constants:
| Constant | Value | Comment |
|---|---|---|
Flyout automatic | "automatic" | pop-up or pulldown, depending on the OS and data source (legacy) |
Flyout pop up | "popup" | pop-up flyout mode |
Flyout pull down | "pulldown" | menu-like flyout mode |
See Flyout mode for more information on the display modes.
If you specify the optional * parameter, you indicate an object name (a string) in object. If you omit the optional * parameter, you indicate a field or a variable in object. In this case, you specify a field or form variable reference.
When called with a supported value, the object appearance is updated immediately; no form refresh is required.
If mode is any other text value, no error is raised, the value is ignored, and the current flyout mode remains unchanged.
Example
// Force pull-down mode
OBJECT SET FLYOUT MODE(*; "myDrop"; Flyout pull down)
// Later, switch back to legacy automatic behavior
OBJECT SET FLYOUT MODE(*; "myDrop"; Flyout automatic)
See also
OBJECT Get flyout mode
Drop-down List
Flyout mode
Properties
| Command number | 1869 |
| Thread safe | no |