Book a Demo

Author Topic: Search for Diagramms  (Read 2641 times)

TM

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Search for Diagramms
« on: November 07, 2008, 10:28:58 pm »
Hello,

I would like to search (model search) a repository for all diagramms. And i would like to search s specific named Diagramm in the model (Name: TestDiagramm).

How can i do that. I did not find any way in the model search.

and the other way round. Is there an easy possiblity to get rid of the package-display in searchmode ?

with kind regards
Thomas

aap

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Search for Diagramms
« Reply #1 on: November 08, 2008, 01:14:44 am »
Diagram searches don't appear to be supported out of the box, so you have to write your own. Here's one I wrote to search for a diagram GUID, which you should be able to adapt to your needs using the editor in "Manage Searches" in Model Search view.

<?xml version="1.0" encoding="Windows-1252"?>
<RootSearch>
      <Search Name="GUID diagrams" GUID="{26245914-4BE2-4e16-AF23-1D9E928EAE56}" PkgGUID="-1" Type="0" LnksToObj="0" CustomSearch="1" AddinAndMethodName="">
            <SrchOn>
                  <RootTable Filter="SELECT ea_guid AS CLASSGUID, Name, Diagram_Type, ea_guid  FROM t_diagram where ea_guid LIKE '&lt;Search Term&gt;' &amp; '*'" Type="-1">
                        <TableName Display="Custom SQL Search" Name="" />
                        <TableHierarchy Display="" Hierarchy="" />
                  </RootTable>
            </SrchOn>
            <LnksTo />
      </Search>
</RootSearch>

Paste the XML into a file, and the "Import" it from the "Manage Searches" dialog.

Regards

Andy