List all stereotypes in code template - enterprise-architect

Is there any way to list all class stereotypes in an Enterprise Architect code template? %classStereotype% only gives me the first one.

There is none. Sparx help lists nothing useful. What you "could" do is to write an add-in and call it via EXEC_ADDIN as described in this part of EA's help.

Related

Create a Block with data from database in Sulu

I need to build a block with data from (Symfony) Entity.
For example a carousel with last 3 item/record from database.
This block can appear in more than just a page.
I know that I can use a custom controller but is that the best technical choice ?
Do i need "Smart content" ? Read the doc but it's not clear
How i can do that ?
Thanks in advance.
Using a twig extension or a controller would definitely be the easiest way, because no sulu knowledge is required for that.
But the sulu way of solving that problem would be a custom SmartContentDataProvider. There are two main advantages of this method:
The content editor can further filter the result (in your case probably sorting and limiting)
The result is also displayed in the admin interface (Otherwise it would just be shown in the preview)
Our community is usually using our Slack channel or GitHub Discussions for support questions. Your questions will probably be answered a lot faster there, because there we can better track them.

Linking items in Sparx Enterprise Architect Glossary

I'm looking for a way to link several items with each other in the Sparx Enterprise Architect Glossary. Is this a possibility?
Example
Term
Definition
Links to
Fact
Something that happend
Follow-upRegistration
Follow-up
Action following a fact
Result
Registration
Writing the fact down
-
Result
The effect of the follow-up
-
I'm looking for a way to register the third column making it easier to have a traceability within the glossary.
You can't do that with the standard glossary, but you can with the new glossary modes (since v15)
See the manual for more info.
This new method allows you to create elements for glossary items. And since they are elements, you can link them to other elements.
You can even use the classes of your existing data model. Just add them to a glossary diagram, and they are included in the glossary.

Prefilled notes of Class attributes in Enterprise architect

is there a way to have prefilled attributes notes in enterprise architect?
It should be something like this scenario:
1) I create new attribute
2) Enterprise architect prefill note of attribute with predefined text
Something like template for attributes.
Thank you for any advice
I know this won't help directly this question.
Anyways you can achieve it through an external addin.
All you need to do is handle the EA_OnPreNewAttribute and EA_OnPostNewAttribute broadcast events .
This isn't quite what you're after but it is possible to create an Attribute stereotype in a Profile and add to this a Tag with an initial value set to what ever you want. When you create an attribute with this stereotype, this means your predefined text would appear in a tag-value for the attribute rather than the note. Not ideal, but might work for you.
You could also have a go at writing some JavaScript to do this as well (under Scripting in EA). You'd have to use the JS to navigate the repository structure, find the attributes in question, and update their note. I don't believe you can attach a script to a UI event, so I think you'd be stuck running this post-hoc rather than having the note auto-populate on attribute creation.

Enterprise Architect: TaggedValues in Diagrams?

I would like to add a tagged value to a diagram in C#. Is this possible? Unfortunately the "New Tagged Value" button is disabled in the GUI.
There are no tagged values for diagrams. (and with good reason)
You'll need to find and object that is somehow represented by this diagram and use that.

How to get filtering to data lists in Alfresco Share (Community 4.0)

How to make filter by specific columns available to data lists in Alfresco Share? Version is Community 4.0. I've tried the existing solutions like fme datalist extension answered here but it has some issues which require customizing the code more than I've got time and expertise. For instance, it loses all custom lists. I tried to add the list definitions from the XML configuration to the embedded definitions but it made the whole site crash.
Is there any other way to achieve filtering? The specific case is that I've got a list which has like ten or so columns. I want to make one or two of them filterable by providing a simple drop down menu of unique values.
Unfortunately it is not possible to filter data-list items out-of-the box in Alfresco Share. The FME extension is the only solution I have seen which will do that for you.