Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: Screwtape on September 26, 2014, 06:07:30 pm

Title: Please can we have GetByName for Connector Tags
Post by: Screwtape 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!
Title: Re: Please can we have GetByName for Connector Tag
Post by: qwerty 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.
Title: Re: Please can we have GetByName for Connector Tag
Post by: Geert Bellekens 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
Title: Re: Please can we have GetByName for Connector Tag
Post by: Screwtape 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.
Title: Re: Please can we have GetByName for Connector Tag
Post by: qwerty 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.