Book a Demo

Author Topic: Exclude element type from ModelView List  (Read 4312 times)

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Exclude element type from ModelView List
« on: August 22, 2016, 02:24:19 pm »
I have just started using ModelView lists on a diagram.


I have the default query with two attributes removed, and would like to exclude Note elements from the list
Code: [Select]
SELECT t_object.ea_guid AS CLASSGUID, t_object.Object_Type AS CLASSTYPE, t_object.Name
FROM t_object INNER JOIN (t_diagram INNER JOIN t_diagramobjects ON t_diagram.Diagram_ID = t_diagramobjects.Diagram_ID)
ON t_object.Object_ID = t_diagramobjects.Object_ID
WHERE t_diagram.ea_guid='{61343AF8-BEDE-4782-B0A9-72E8F32131BE}' ORDER by t_object.Name


tia


Simon


http://www.sparxsystems.com/enterprise_architect_user_guide/11/reporting/define_a_model_view_chart.html
http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/navigate_search_and_trace/reportview.html
http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/navigate_search_and_trace/diagram_list.html
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Exclude element type from ModelView List
« Reply #1 on: August 22, 2016, 02:27:29 pm »
Add the following to your condition:

and Object_Type not in ('Note')

I've used "not in" under the assumption that you'll want to remove other types eventually. Otherwise it would be Object_Type <> 'Note'