Book a Demo

Author Topic: How to populate ComboBox items in UI Simulation  (Read 12406 times)

sude.ciloglu

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
How to populate ComboBox items in UI Simulation
« on: October 27, 2025, 08:31:20 pm »
Hello everyone,

I'm trying to populate a ComboBox with selectable items during a UI Simulation in Enterprise Architect ( Interpreted / UML Basic mode).

In my model:
- I created a UI form named "NewSiteWizard" under the User Interface package.
- The form contains several controls, including a ComboBox named "Combobox5".
- The form itself appears correctly during the simulation.

However, I couldn’t find any working way to programmatically add items to the ComboBox. 
I’ve tried the following methods:

1. Using `dialog.NewSiteWizard.Combobox5.Add("Kadın")` and `.Clear()` → `cb.Clear is not a function`
2. Using `dialog.NewSiteWizard.Controls("Combobox5")` → `Controls is not a function`
3. Setting Tagged Value `Items = "Kadın;Erkek"` → still empty during simulation
4. Verified that the control name and type are correct, and the form loads properly.

Example from the System Output:


**My questions:**
- Is there a supported API or scripting approach to populate ComboBox items at runtime in UI simulations?
- Are UI control methods like `.Add()` or `.AddItem()` currently functional in interpreted simulation mode?
- If not, is there any known workaround?

Any guidance, example, or confirmation about current support status would be really helpful. 
Thanks in advance!