Book a Demo

Author Topic: Attributes type enam or array  (Read 3991 times)

XGala

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Attributes type enam or array
« on: November 08, 2019, 12:01:49 am »
Can I make enam or array attributes type? If possible, then how to do it? Thanks

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Attributes type enam or array
« Reply #1 on: November 08, 2019, 12:47:37 am »
What exactly do you mean?

Geert

XGala

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Attributes type enam or array
« Reply #2 on: November 15, 2019, 07:22:03 pm »
One attribute can have different values. I would like  to select a value from the list. In tag it is possible  by declaring the type of enum. Can i do this  with an attribute? Thank.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Attributes type enam or array
« Reply #3 on: November 15, 2019, 07:32:46 pm »
Yes, you can set the type of an attribute to be an enumeration.

But during design you don't set the values of an attribute. That is only done at runtime, so there won't be anything to select in EA.

You can set the default value of an attribute, but EA doesn't show you a dropdown with enum values. You'll have to make this default value consistent to the values of the enumeration yourself.

Geert

XGala

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Attributes type enam or array
« Reply #4 on: November 15, 2019, 09:46:24 pm »

Thank you so much Geert!