Book a Demo

Author Topic: Exception for TaggedValues.GetByName()  (Read 3556 times)

Stephanie

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Exception for TaggedValues.GetByName()
« on: June 12, 2007, 11:50:33 am »
Hi,

According to the help the method GetByName() is supported for TaggedValues. However it seems that this applies only for EA.Element.TaggedValues but not for EA.Connector.TaggedValues.

When I use GetByName for taggedValues of connectors an "action not supported" exception is thrown.

This is a bug, isn't it?

(to be continued)

Maybe programming at midnight is not a good idea, but it seems I can not access TaggedValues of EA.Connectors at all? Please tell me that I am wrong!
« Last Edit: June 12, 2007, 01:09:07 pm by Stephanie »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Exception for TaggedValues.GetByName()
« Reply #1 on: June 12, 2007, 01:16:07 pm »
Quote
Maybe programming at midnight is not a good idea, but it seems I can not access TaggedValues of EA.Connectors at all? Please tell me that I am wrong!

My guess about what you're doing wrong is trying to get TaggedValue objects out of the Connector.TaggedValues list.  Connector.TaggedValues is made up of ConnectorTag objects.

Stephanie

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Exception for TaggedValues.GetByName()
« Reply #2 on: June 12, 2007, 01:55:21 pm »
You probabbly saved my diploma thesis this night :-). I was not aware of thi difference at all!

But seriously, why are TaggedValues of Connectors and Elements are treated so differently?

And part one of my previous note is still right? GetByName() is only supported for Element.TaggedValues and not for Connectors.TaggedValues? If yes then a hint in the help would be helpful.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Exception for TaggedValues.GetByName()
« Reply #3 on: June 12, 2007, 02:12:26 pm »
The only tagged values that GetByName works for is Element.TaggedValues.