Book a Demo

Author Topic: Enums as array  (Read 5536 times)

royvanmarrewijk

  • EA User
  • **
  • Posts: 61
  • Karma: +1/-0
    • View Profile
Enums as array
« on: August 03, 2016, 07:00:16 pm »
Hi,

Is it possible to use enums as multiplicity for attributes so I can create the following example:

_viewer_id[eDir] : int

(If not then) I would like to know how I can define multidimensional arrays in which I assume is possible within EA.

kind regards,
Roy van Marrewijk

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Enums as array
« Reply #1 on: August 03, 2016, 08:29:49 pm »
Just open the attribute's properties, click the ellipsis in the Multiplicity and enter "eDir" in lower and upper bound.

q.

royvanmarrewijk

  • EA User
  • **
  • Posts: 61
  • Karma: +1/-0
    • View Profile
Re: Enums as array
« Reply #2 on: August 03, 2016, 09:19:20 pm »
Hi Qwerty,

thanks for your reaction! This simple solution will work for me but if possible I would like to see a connection between the attribute and enum as it would be when I use Select Type in stead of a textual relation, is this possible?

Roy

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Enums as array
« Reply #3 on: August 03, 2016, 09:29:02 pm »
Simple answer: no. At least AFAIK. The text in the multiplicity is pure text. You can start with some add-in to check / support that.

q.

royvanmarrewijk

  • EA User
  • **
  • Posts: 61
  • Karma: +1/-0
    • View Profile
Re: Enums as array
« Reply #4 on: August 04, 2016, 03:59:22 pm »
Hi q,

Thanks again! I'll put it on my To Do list.

Roy