EntitySelectionMenu
| ๐ Overview: 2 Properties | 1 Constructor | 2 Functions | 1 Getters | 1 Setters |
๐ Description
Creates a dynamic popup menu for selecting entities from an entity selection
๐ Last updated: 2025-12-10T11:45:22.815Z
๐ Table of Contents
- ๐ Properties (2)
- ๐๏ธ Constructor (2 params)
- โ๏ธ Functions
- Regular Functions
- display (1 param) โ
4D.Entity - displayWithParents (2 params) โ
4D.Entity
- display (1 param) โ
- Computed Attributes (Getters/Setters/Query/OrderBy)
- selectedEntity ๐ โ๏ธ โ
4D.Entity
- selectedEntity ๐ โ๏ธ โ
- Regular Functions
Properties
| Property | Type | Default | Description |
|---|---|---|---|
EntitySelection | 4D.EntitySelection | - | Entity selection to display in menu |
_selectedEntity | 4D.Entity | - | Currently selected entity from the menu |
Constructor
constructor
[๐๏ธ constructor]
Class constructor($EntitySelection : 4D.EntitySelection; $ParentPath : Text)
Creates a dynamic popup menu for selecting entities from an entity selection
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$EntitySelection | 4D.EntitySelection | - | - |
$ParentPath | Text | - | - |
Functions
Regular Functions
display
Function display($DisplayTextProperty : Object) -> 4D.Entity
Displays a popup menu with entities sorted by display property, returns selected entity or Null
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$DisplayTextProperty | Object | - | - |
Returns: 4D.Entity
displayWithParents
Function displayWithParents($DisplayTextProperty : Object; $ParentProperty : Object) -> 4D.Entity
Displays hierarchical popup menu grouped by parent property, returns selected entity or Null
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$DisplayTextProperty | Object | - | - |
$ParentProperty | Object | - | - |
Returns: 4D.Entity
Computed Attributes (Getters/Setters/Query/OrderBy)
selectedEntity
[๐ get, โ๏ธ set]
Function get selectedEntity -> 4D.Entity
Function set selectedEntity($SelectedEntity : 4D.Entity)
Returns the currently selected entity
Setter Parameter:
| Name | Type | Description |
|---|---|---|
$SelectedEntity | 4D.Entity | - |
Returns: 4D.Entity
Generated from EntitySelectionMenu.4dm