Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: DanielB on February 13, 2018, 10:29:18 pm

Title: Adding checklist tagged value to profile stereotype
Post by: DanielB on February 13, 2018, 10:29:18 pm
Hi,

I've added Enumeration class as a new tagged value to my custom stereotype in an MDG I'm creating. How do I make this tagged value a checkilst (multiple selection) instead of single select? Should I change the type of Tag?

At the moment it looks like this in an XML file:
Code: [Select]
<Tag name="NAME" type="enumeration" description="" unit="" values="A,B,C" default="A"/>
Thank you in advance.

Regards,
Daniel
Title: Re: Adding checklist tagged value to profile stereotype
Post by: Arshad on February 13, 2018, 10:39:25 pm
Hi Daniel

 For checklist please try

Code: [Select]
Type=CheckList;
Values=Val1,Val2,Val3;


Please define your own tagged value with checklist type and add it in the stereotype.


To Create tagged value from pre defined type
http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/create_tagged_values.html (http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/create_tagged_values.html)

For more details please refer Predefined Types
http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/predefinedtaggedvaluetypes.html (http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/predefinedtaggedvaluetypes.html)

HTH
Arshad
Title: Re: Adding checklist tagged value to profile stereotype
Post by: DanielB on February 13, 2018, 10:48:50 pm
I had tried this before posting a thread but it didn't seem to work:

Code: [Select]
<TaggedValues>
  <Tag name="NAME" type="CheckList" description="" unit="" values="A,B,C" default="A"/>
</TaggedValues>

still single selection.
Title: Re: Adding checklist tagged value to profile stereotype
Post by: Paolo F Cantoni on February 14, 2018, 11:56:53 am
I had tried this before posting a thread but it didn't seem to work:

Code: [Select]
<TaggedValues>
  <Tag name="NAME" type="CheckList" description="" unit="" values="A,B,C" default="A"/>
</TaggedValues>

still single selection.
Hi Daniel,
If you started off with a single selection enumeration and now want a (simple) multiselection set then a type CheckList is NOT what you need.  EA implements a CheckList as a TRUE Checklist (I got "sucked in" the same way).  Re-read the definition referenced by Archad.  IIRC there is currently no mechanism to create a multiselection set.

In addition, IIRC there are issues with the current implementation of CheckList.  I posted a topic about it within the last year, I think.

Paolo

Paolo