Author Topic: Diagram Navigation Using Model View Artifact  (Read 461 times)

sjarwah

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Diagram Navigation Using Model View Artifact
« on: May 23, 2019, 02:44:51 am »
Trying to create a list of diagrams on a navigation page using a Model View artifact. The search query is below and it is returning the wanted list of diagrams. However when clicking on an item in the list it is opening the diagram properties page instead of openning the diagram itself. Is there a way to change that behavior to open the diagram? or is there another way to construct a dynamic list of diagrams for navigation purpose:

SELECT t_diagram.ea_guid AS CLASSGUID, t_diagram.Diagram_Type AS CLASSTYPE, t_object.Name
FROM ((t_object
INNER JOIN t_objectproperties ON t_objectproperties.Object_ID = t_object.Object_ID)
INNER JOIN t_diagram ON t_object.Name = t_diagram.Name)
WHERE t_object.Object_Type = "Enumeration"
AND t_object.Name like '<Enumeration Name expression>'
AND t_objectproperties.Property = 'Tag Name'
AND t_objectproperties.Value like '<Tag Value Expresssion>'
« Last Edit: May 23, 2019, 11:24:26 pm by sjarwah »

qwerty

  • EA Guru
  • *****
  • Posts: 10204
  • Karma: +216/-177
  • I'm no guru at all
    • View Profile
Re: Diagram Navigation Using Model View Artifact
« Reply #1 on: May 23, 2019, 06:45:19 am »
Try inserting 't_diagram' as CLASSTABLE, right after the SELECT statement.

q.

sjarwah

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Diagram Navigation Using Model View Artifact
« Reply #2 on: May 23, 2019, 11:22:15 pm »
Thanks. But it is still opening the Class Diagram properties page when I click on an item in the list.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9100
  • Karma: +239/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Diagram Navigation Using Model View Artifact
« Reply #3 on: May 23, 2019, 11:31:21 pm »
Alt-G + doubleclick in the project browser should help.

The funny thing is that it works if the diagram is already open in another tab.
If not it doesn't do anything in my version (v15 beta)

Geert

sjarwah

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Diagram Navigation Using Model View Artifact
« Reply #4 on: May 23, 2019, 11:46:42 pm »
Geert,
This Model View is an artifact in a navigation diagram that I created (not the project browser).
I also tried to select the diagram from the list while it was open in another tab, but it is still opening the class diagram properties page as opposed to teh diagram itself.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9100
  • Karma: +239/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Diagram Navigation Using Model View Artifact
« Reply #5 on: May 24, 2019, 12:13:49 am »
Geert,
This Model View is an artifact in a navigation diagram that I created (not the project browser).
I also tried to select the diagram from the list while it was open in another tab, but it is still opening the class diagram properties page as opposed to teh diagram itself.
Ah, sorry, didn't see the part about the model view artifact. I though you were talking about an SQL search.

Geert