Book a Demo

Author Topic: Another question about SQL queries of diagrams  (Read 5930 times)

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
Another question about SQL queries of diagrams
« on: January 26, 2018, 01:46:46 am »
I want to have my query result clickable so that I can easy move to the diagram.

This works for queries created with the query builder. But what fields I have to alias with CLASSGUID and CLASSTYP when I do pure SQL on t_diagram?
Best regards,

Peter Heintz

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Another question about SQL queries of diagrams
« Reply #1 on: January 26, 2018, 02:14:46 am »
Start with this one:

Code: [Select]
SELECT t_diagram.ea_guid as CLASSGUID,  t_diagram.Diagram_Type as CLASSTYPE, name from t_diagram

q.

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
Re: Another question about SQL queries of diagrams
« Reply #2 on: January 26, 2018, 02:31:53 am »
Hi qwerty,
this I tried already.
 
When I do that, both fields disappear in my query results (what I expected). I also see an icon but a package icon rather than the diagram icon, and when I click on that for roundabout 99% of the rows nothing happen and surprisingly 1% works!?
Best regards,

Peter Heintz

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
Re: Another question about SQL queries of diagrams
« Reply #3 on: January 26, 2018, 02:45:56 am »
In addition:
Right click and „Find in Poject Browser” seem to work for any row!?
EA is really magic!
Best regards,

Peter Heintz

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Another question about SQL queries of diagrams
« Reply #4 on: January 26, 2018, 02:48:35 am »
I always get the right result. But the icon is never a diagram (EAUI). Never looked in that corner. Need to investigate...

q.

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
Re: Another question about SQL queries of diagrams
« Reply #5 on: January 26, 2018, 02:52:23 am »
And even more funny!
Once you have done a “Find in Project Browser” the double click starts to work (row by row!!!) ! ::)
« Last Edit: January 26, 2018, 02:54:05 am by PeterHeintz »
Best regards,

Peter Heintz

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Another question about SQL queries of diagrams
« Reply #6 on: January 26, 2018, 07:17:17 am »
The help http://www.sparxsystems.com/enterprise_architect_user_guide/12.1/building_models/creating_filters.html does not mention diagrams in the result at all. So the case that it works is coincidence and the likely will refuse fixing it (either to forbid it or to return the correct diagram icons). Bug reporters welcome (I'm none).

q.

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
Re: Another question about SQL queries of diagrams
« Reply #7 on: January 29, 2018, 08:19:39 pm »
This issue is continued here:
http://www.sparxsystems.com/forums/smf/index.php/topic,39168.0.html
So I try to close this one!
Best regards,

Peter Heintz