Book a Demo

Author Topic: Action not supported trying to access a connector.  (Read 3455 times)

Marcos Calleja

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Action not supported trying to access a connector.
« on: March 14, 2015, 12:56:31 am »
Hi!. I'm trying to access a connector of a EA.Element using the method element.Connectors.GetByName(name), and if the connector doesn't exist it's ok but if exist then throws an "Action not supported" error message.

Anyone knows why is this happening?

Greetings and thanks in advance :)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Action not supported trying to access a connec
« Reply #1 on: March 14, 2015, 03:44:52 am »
IIRC GetByName is not implemented for all collections. Just create a wrapper for it and you're done. That also gives you the possibility to react on duplicate name conditions.

q.

Marcos Calleja

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Action not supported trying to access a connec
« Reply #2 on: March 16, 2015, 10:51:56 pm »
Thanks qwerty. I thought it was implemented because appear when you try to access the methods of a EA.Connector. Anyway I did as you said :)