Book a Demo

Author Topic: Model Search - Connector Issue  (Read 3682 times)

Earnfried

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Model Search - Connector Issue
« on: March 26, 2020, 05:39:05 am »
Dear community,

I'm using the Repository.RunModelSearch() - function to show connectors with following column headers:
"CLASSGUID", "CLASSTABLE", "CLASSTYPE","Name"
the rows are filled in the following:
con.ConnectorGUID, "t_connector",con.Type,con.Name

I also tried con.MetaType instead of con.Type and instead of "t_connector" -> "'t_connector'".
But it is not offering me the "Find in diagrams"-Functioanlity and i cannot open them via the double-click.

Currently I'm  using EA v13.5 and I for elements and diagrams it worked as exspected.

Any ideas?

Best regards

Earny

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Model Search - Connector Issue
« Reply #1 on: March 26, 2020, 06:04:18 am »
Try
Code: [Select]
SELECT t_connector.ea_guid as "CLASSGUID","Name", "t_connector" as "CLASSTABLE", t_connector.Connector_Type as "CLASSTYPE",t_connector.Name
 from t_connector

That allowed me a Ctrl-U to find in diagrams.

q.

Earnfried

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Model Search - Connector Issue
« Reply #2 on: March 26, 2020, 07:43:45 am »
Dear qwerty,

thanks for your fast reply. When using this in the SQL Editor it is working (as expected). I tested this in the SQL Editor before. When I go now for a script approch like  Michael Fraser (Sparx Systems) did (https://community.sparxsystems.com/community-resources/489-61listing-all-connectors-in-a-diagram) it is not showing up. I tried the same building the xml via my AddIn. In this way the CTRL+U and "Double Click" are not working.

Best regards

Earny

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Model Search - Connector Issue
« Reply #3 on: March 26, 2020, 08:07:35 am »
I'd suggest to contact the author of that snippet. I won' get my hands dirty with VB-whatever ;-)

q.

Earnfried

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Model Search - Connector Issue
« Reply #4 on: March 26, 2020, 08:57:35 am »
Dear qwerty,

It's not about the script. It's about using the EA API. I wrote an own script and I have some codes in a c# AddIn. Both are using the function:

Repository.RunModelSearch( "", "", "", xml);

xml contains all necessary information like the headers and the rows. For some reason the actions like "Double-Click" and CTRL+U are not working with connectors but with diagrams and objects.

I try to figure out why

Best regards

Earny

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Model Search - Connector Issue
« Reply #5 on: March 26, 2020, 07:08:05 pm »
Seems's you're right. The context of the search has Properties grayed out. Ctrl-U works, though. You should report a bug.

q.

Earnfried

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Model Search - Connector Issue
« Reply #6 on: March 27, 2020, 07:18:26 am »
Alright. Done. Thanks for your support!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Model Search - Connector Issue
« Reply #7 on: March 28, 2020, 12:24:33 am »
Just as an addendum: Ctrl-U "seems" to work. But actually it sends you to some random element (I ended up in always the same element for any row resulting from a connector search. Probably it's best to return the source or target element and to look into the Relationships window for that element to get further details. Awkard, yes. But it's just EA...

q.