Book a Demo

Author Topic: Add choose to "type" drop-dowlist of a requirement  (Read 19901 times)

Monsieur

  • EA User
  • **
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Add choose to "type" drop-dowlist of a requirement
« on: December 04, 2014, 01:40:49 am »
Hello dear everyone,

Using the MDG tech :
I have created a new stereotype called "Need" which extends requirement and another one called "TechnicalRequirement"

By default those stereotype are displayed in the drop-down list "type" in the properties of each element (which is supposedly a enumeration list). Although those 2 stereotypes are not part of the drop-down list and if I choose any other choice there is no way to select again my old stereotype.
I can still go back by typing my stereotype in the drop-down list.

so how add those stereotype to this drop-down list.



ps: Why can we type in a drop-down list????????  Weird feature isn't it?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Add choose to "type" drop-dowlist of a require
« Reply #1 on: December 04, 2014, 08:24:11 am »
I'm not entirely sure which drop-down list you're talking about, or how to reproduce the behavior of a profile stereotype not being included. (Have you imported the profile/technology or just modeled it?)

As for being able to type into it as well. Since its creation EA has allowed users to create stereotypes in an ad-hoc manner. This is why you can type into it. And the functionality to type into it is common enough that it's usually called a combo box.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Add choose to "type" drop-dowlist of
« Reply #2 on: December 04, 2014, 08:29:04 am »
Quote
ps: Why can we type in a drop-down list????????  Weird feature isn't it?
No. That's not uncommon (though I don't remember how such fields are called). The drop down is just convenience to allow the user to enter pre-defined values. Plus he's able to enter own values.

q.
« Last Edit: December 04, 2014, 08:29:41 am by qwerty »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Add choose to "type" drop-dowlist of
« Reply #3 on: December 04, 2014, 05:53:32 pm »
Quote
Quote
ps: Why can we type in a drop-down list????????  Weird feature isn't it?
No. That's not uncommon (though I don't remember how such fields are called). The drop down is just convenience to allow the user to enter pre-defined values. Plus he's able to enter own values.

q.
Commonly known as a "Combobox" as in a Combination of a text box and a dropdown box.

Geert


Monsieur

  • EA User
  • **
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Add choose to "type" drop-dowlist of
« Reply #4 on: December 04, 2014, 08:01:16 pm »
Quote
I'm not entirely sure which drop-down list you're talking about, or how to reproduce the behavior of a profile stereotype not being included. (Have you imported the profile/technology or just modeled it?)
I have created my MDG tech and imported it. Looks all pretty much functionnal (new diagram, toolbox, objects,...)
As I said in my first post, New custom object "Need" that extends <<metaclass>>requirement. Once my MDG imported.
I created my new "Need" the right click > Properties...
I then have the same UI than a requirement object + stereotype need.
AND THERE IT IS, the "Type :" field (which is pretty much the stereotype field)

http://snag.gy/p7bHF.jpg
http://snag.gy/j9UBL.jpg

As you see, no "Need" value in the combo box as it where just before.
http://snag.gy/046LI.jpg



Quote
As for being able to type into it as well. Since its creation EA has allowed users to create stereotypes in an ad-hoc manner. This is why you can type into it. And the functionality to type into it is common enough that it's usually called a combo box.
Well that's not encouraging good pratices (define what you really need to use and do not do live actions that are not define in a datamodel )

« Last Edit: December 05, 2014, 09:54:21 pm by damien.reche »

Gary

  • EA User
  • **
  • Posts: 84
  • Karma: +1/-0
    • View Profile
Re: Add choose to "type" drop-dowlist of a require
« Reply #5 on: December 08, 2014, 08:14:16 pm »
You can turn off the ability to create stereotypes.
Enable security and remove the option for groups that you do not want to have that ability. Leave it on for admin and set a password.

Gary

Monsieur

  • EA User
  • **
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Add choose to "type" drop-dowlist of
« Reply #6 on: December 08, 2014, 08:43:48 pm »
Quote
You can turn off the ability to create stereotypes.
Enable security and remove the option for groups that you do not want to have that ability. Leave it on for admin and set a password.

Gary

thank you Gary but I still need a way to add my customs stereotype to the dropdown list before I block the ability to create stereotype.
« Last Edit: December 08, 2014, 09:26:31 pm by damien.reche »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Add choose to "type" drop-dowlist of a require
« Reply #7 on: December 08, 2014, 09:24:16 pm »
If you choose the ellipsis button right to the stereotype input field: can you chooses your MDG? Are your stereotypes present?

q.

Monsieur

  • EA User
  • **
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Add choose to "type" drop-dowlist of
« Reply #8 on: December 08, 2014, 09:30:44 pm »
Quote
If you choose the ellipsis button right to the stereotype input field: can you chooses your MDG? Are your stereotypes present?

q.
Wow q, no idea which button your talking to, care to past a screen? thank you for your answer

If you are talking about Object creation, yes I have my types in the Type selection once I am in the good toolset
http://snag.gy/Fql6b.jpg
But that's not supposed to be related with the Type in the property UI

Ps: besoin = need (the alias are in french since I customize for a French company)

« Last Edit: December 08, 2014, 09:49:51 pm by damien.reche »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Add choose to "type" drop-dowlist of
« Reply #9 on: December 08, 2014, 11:05:14 pm »
Oh. EAUI... In the properties (dbl-click element) you find that "..." button right to the stereotype. Actually I almost never use the New Element icon. But definitely the missing ellipsis button is worth a bug report.

q.

P.S. I would not have guessed you're French  ;D

P.P.S.: This window has a Select Toolbox. Does that show your MDG?
« Last Edit: December 08, 2014, 11:10:32 pm by qwerty »

Monsieur

  • EA User
  • **
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Add choose to "type" drop-dowlist of
« Reply #10 on: December 09, 2014, 12:02:30 am »
Quote
Oh. EAUI... In the properties (dbl-click element) you find that "..." button right to the stereotype. Actually I almost never use the New Element icon. But definitely the missing ellipsis button is worth a bug report.

q.
Can you show me that button and explain what purpose does it have?


Quote
P.S. I would not have guessed you're French  ;D
There is a lot more to guess then  :P

Quote
P.P.S.: This window has a Select Toolbox. Does that show your MDG?
Yes it is, not sure it is perfect though, I'd love to exchange piece of advice about it since I'm not familiar with EA good practicices  ;D
« Last Edit: December 09, 2014, 12:07:12 am by damien.reche »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Add choose to "type" drop-dowlist of a require
« Reply #11 on: December 09, 2014, 12:43:44 am »


When you open the dialog you should be able to select your MDG. It then should show the available stereotypes for that element.

q.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Add choose to "type" drop-dowlist of a require
« Reply #12 on: December 09, 2014, 09:02:02 am »
Look for Stereotype Selector in the Help index, and then look at some of the topics around that topic.
Best Regards, Roy

Monsieur

  • EA User
  • **
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Add choose to "type" drop-dowlist of a require
« Reply #13 on: January 09, 2015, 07:24:18 pm »
I just upgraded from EA9.3 to EA11.1

Still no stereotype selector as you can confirm it on that picture


I don't have any clue of how to make this feature work. Does not sparx (or any one) have a list of a few checks to do?

(Maybe i got an uncheck box in settings or something?)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Add choose to "type" drop-dowlist of a require
« Reply #14 on: January 09, 2015, 08:32:57 pm »
Requirements show the stereotype in the Type field. It also behaves a bit different. EAUI that is....

q.