Author Topic: Please can we have GetByName for Connector Tags  (Read 4428 times)

Screwtape

  • EA User
  • **
  • Posts: 93
  • Karma: +4/-0
    • View Profile
Please can we have GetByName for Connector Tags
« on: September 26, 2014, 06:07:30 pm »
It appears the GetByName method on collections is content specific, and not implemented for TaggedValues belonging to Connector elements.

Please get it done as it's a real pain to have two different ways of accessing my TaggedValues.

Thanks!
Screwtape

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Please can we have GetByName for Connector Tag
« Reply #1 on: September 26, 2014, 07:16:51 pm »
I'd say it with Geert's words: write a wrapper (and don't expect Sparx to do it).

q.
« Last Edit: September 26, 2014, 07:17:09 pm by qwerty »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Please can we have GetByName for Connector Tag
« Reply #2 on: September 26, 2014, 07:22:42 pm »
Quote
I'd say it with Geert's words: write a wrapper (and don't expect Sparx to do it).

q.
In fact I never user GetByName because
A) I don't trust it (who knows what it'll do when there are two objects with the same name in my collection)
B) Its probably slower than getting the thing you need using it's ID (not true for tagged values as we don't have a getTaggedValueByGUID operation.)


Geert

Screwtape

  • EA User
  • **
  • Posts: 93
  • Karma: +4/-0
    • View Profile
Re: Please can we have GetByName for Connector Tag
« Reply #3 on: September 26, 2014, 07:35:15 pm »
I've worked around it by iterating over the list, but it's just the inconsistency between the different collection types that seems odd.
Screwtape

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Please can we have GetByName for Connector Tag
« Reply #4 on: September 26, 2014, 08:36:05 pm »
Quote
I've worked around it by iterating over the list, but it's just the inconsistency between the different collection types that seems odd.
So you're trying to say that EA is inconsistent? I'm shocked  ;D

q.