Book a Demo

Recent Posts

Pages: 1 ... 7 8 [9] 10
81
Bugs and Issues / Re: An issue with the CSV import
« Last post by RobCDeJong on October 27, 2025, 09:34:03 pm »
The import only adds or changes elements by design.

When you want to delete elements based on an import file, you should use scripting to figure out which elements are obsolete and can be removed or modify the status, which is better for requirements management.
82
General Board / How to populate ComboBox items in UI Simulation
« Last post by sude.ciloglu 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!


83
Bugs and Issues / An issue with the CSV import
« Last post by miksko on October 27, 2025, 07:11:30 am »
The menu option Publish->Model Exchange->CSV let you export and import items as CSV files. I've tested it with Requirements, to figure out if there are cases that don't work. There is one: If you export a requriement model, remove one of the rows and then import the CSV file again, the matching requirement isn't removed from the model.
All other kinds of updates work marvelously though. You may even add a line in the CSV file, which Sparx will interpret as a new requirement and add to the model. You will get a warning that one of the rows misses a GUID, but the application will then generate one and add the requirement to the model.

Does anyone have an idea to why removals aren't executed? This is a file repository, so it shouldn't be a permission issue.
84
Yes, you can retrieve the version and build number of Sparx Enterprise Architect using JavaScript via the `Repository` object.

To do this, use the `Repository.GetEAEdition()` and `Repository.LibraryVersion` properties. Here's how it works:

Accessing EA Version and Build in JavaScript
Sparx EA’s scripting environment exposes a `Repository` object that provides metadata about the running instance. You can use the following script:

Sample javascript
Code: [Select]
!INC Local Scripts.EAConstants-JavaScript

function GetEAVersionInfo() {
    var edition = Repository.GetEAEdition();       // e.g., "Corporate Edition"
    var version = Repository.LibraryVersion;       // e.g., "1713"

    Session.Output("EA Edition: " + edition);
    Session.Output("EA Version and Build: " + version);
}

GetEAVersionInfo();
```

Explanation
- `Repository.GetEAEdition()`- returns the edition name (e.g., Corporate, Ultimate).
- `Repository.LibraryVersion`- returns the full version string including the build number (e.g., `1713` means version 17.1, build 1713).
- `Session.Output()`- prints to the script console, useful for debugging or logging.

Use Case in Reporting
If you're generating a report and want to include the EA version/build for traceability or compliance, you can:
- Embed this script in a report template.
- Store the version string as a tagged value or note on a model element.
- Include it in a custom document section via scripting.

85
Dear all,

is there a possible to get the version and build number of the EA version used to generate a report? Or can the EA version be retrieved programmatically in an add-in?

Regards,
Marc
86
Bugs and Issues / Search in partitionElementRef tag doesn't work
« Last post by Geert Bellekens on October 24, 2025, 05:53:39 pm »
The search option on the BPMN2.0 partitionElementRef tag on Lane, doesn't work.

The Browse option can be used to select any element, but the search option never returns any results, regardless of the input.
This was tested in version 17.0.1704 but was already an issue in v15

Reported

Geert
87
General Board / Re: Auto-wrapping a table row exceeding the printable page size?
« Last post by Takeshi K on October 24, 2025, 09:53:53 am »
Just my guess, but the Header Row and the Keep Row Together settings in the Template editor, the Edit ribbon, the Table button might mitigate your situation.

HTH,
88
General Board / Generate contract tests?
« Last post by miksko on October 24, 2025, 01:34:34 am »
Is Sparx able to generate contract tests from interface models?

Mikael
89
I don't think you can do much about this in EA, but I think you can in Word.

What we do is: generate to docx, and then update the tables in Word to fit our needs. (we even have some VBA scripts to automate part of that stuff)

Geert
90
General Board / Auto-wrapping a table row exceeding the printable page size?
« Last post by markuss on October 23, 2025, 11:12:18 pm »
Dear EA experts,

we are currently struggling with a table in which some of the cells have more content than fits on the printable page of the RTF template, i.e. the bottom of the cell supersedes the page footer and is then cropped at the page bottom. Is there a way to format the table such that the row will be split across pages in case it is too big for a single page?

You probably wonder why we can have so much content in a single table cell, hence a bit of background. The table specifies test cases that are to be conducted manually. First column is the steps to execute, second column the expected output and third column contains checkboxes for pass/fail. The test instructions as well as expected output can grow quite large in particular test cases.

Thanks a lot in advance for your advice

Markus
Pages: 1 ... 7 8 [9] 10