Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: kiesel on January 09, 2014, 01:44:49 am

Title: Notes / Diagram properties in "Find in project"
Post by: kiesel on January 09, 2014, 01:44:49 am
It seems to be that with "Find in project" with Search Simple or Extended it is not possible to find Diagrams. Neither the diagram itself nor diagram property notes nor notes.
E.g. if I have the diagram named "AC-001" and my search term is "AC-001" then the diagram is not found.

Is that new? I seem to remember it worked formerly (1-2 years back with Version 8, now I have version 10 of EA).

is there any simple solution for this?
Title: Re: Notes / Diagram properties in "Find in project
Post by: Helmut Ortmann on January 09, 2014, 02:31:02 am
Hello,

create a search like:
Code: [Select]
select d.ea_guid As CLASSGUID, d.diagram_type As CLASSTYPE, d.name As Diagram, d.diagram_type As Type
from t_diagram d
where  
   name like "#WC#<Search Term>#WC#" or
   notes like "#WC#<Search Term>#WC#"
order by 3,2

Helmut
Title: Re: Notes / Diagram properties in "Find in project
Post by: skiwi on January 09, 2014, 10:24:59 am
No doubt you will therefore be amused by
Search for diagram with name (http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1363775574/0#0)

and maybe related
Diagram searches not working in model documents? (http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1279758841/0#0)
Title: Re: Notes / Diagram properties in "Find in project
Post by: KP on January 09, 2014, 10:41:30 am
To create your own diagram search:

Edit > Find in Project > Builder > New Search. Search Name = "Diagram", Editor Type = Query Builder, OK. Right-click > Add Filter. Search On = Diagram, tick "Include" and "Required" for "Name Contains <Search Term>", OK. Save.