Book a Demo

Author Topic: Search results with Packages : issue  (Read 3926 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Search results with Packages : issue
« on: July 25, 2014, 11:34:42 pm »
Hi,

I've created a custom search (SQL) using the Builder.
here is a simplified version to test :
SELECT ea_guid AS CLASSGUID,  name as Package from t_package

I use CLASSGUID so that EA can find my Package in the Project Browser.
However when I right click on a result from the list, Find in Project Browser is disabled.
This is odd since the keyboard shortcut Alt-G works... I can also access the Package's properties when I double click onto it.

Is this a bug?
« Last Edit: July 25, 2014, 11:37:29 pm by gfuk »
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Search results with Packages : issue
« Reply #1 on: July 26, 2014, 01:52:27 am »
Hi Guillaume,

you have forgotten to define the type (CLASSTYPE):

Code: [Select]
SELECT ea_guid AS CLASSGUID, 'Package' AS CLASSTYPE,  name as Package from t_package

Consider using t_object (depends what you want to know):
Code: [Select]
SELECT ea_guid AS CLASSGUID, object_type  AS CLASSTYPE,  name, stereotype  
from t_object
where object_type = 'Package'


Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Search results with Packages : issue
« Reply #2 on: July 30, 2014, 09:52:28 pm »
Thanks Helmut. I wasn't sure I could use "classtype".

I managed to get it to work and published my user defined search alongside an illustration in the following article:

http://www.umlchannel.com/en/enterprise-architect/item/108-sparxsystems-enterprise-architect-user-defined-search-to-find-a-controlled-package-based-on-the-xmi-filename-path

Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com