Book a Demo

Author Topic: Filters on Package Explorer  (Read 4192 times)

pittagentskip007

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Filters on Package Explorer
« on: October 25, 2011, 05:12:47 am »
Hello,

I would love to see some element filters be put on the project browser so that as I drill into each package irrelevant content could be hidden from view.

The tricky part is that I would want this to be recursive in nature.

So for example lets say I have the following project browser BEFORE applying any filter.

Package A (Phase 1.0)
     Package B (Phase 1.0)
        Requirement 1 (Phase 1.0)
        Requirement 2 (Phase 1.1)
        Requirement 56 (Phase 6.0)
    Package C (Phase 2.0)
        Requirement 3 (Phase 2.1)
        Requirement 5 (Phase 2.2)

Lets then say I applied an element filter of Phase 6.0 on the project viewer. I would then see this...

Package A (Phase 1.0)
     Package B (Phase 1.0)
        Requirement 56 (Phase 6.0)

The important point here is the packages that have child elements which meet the criteria are shown even if the package doesn't meet the criteria. Also important is how if a package has no elements that meet the criteria, it is hidden.

An alternative to this feature might be an enhancement to the model search that would put the search results in context of the project hierarchy where it was found.

Thoughts on making this happen?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Filters on Package Explorer
« Reply #1 on: October 25, 2011, 06:10:18 pm »
This seems a rather specific request, so I think you better start looking developing something for yourself.
With the recent "AddWindow" functionality you can add your own docked window with your own "filtered" model explorer.

Geert

stevesavage

  • EA User
  • **
  • Posts: 119
  • Karma: +4/-0
    • View Profile
Re: Filters on Package Explorer
« Reply #2 on: April 19, 2012, 12:38:13 am »
Another option would be to create a custom SQL search.

I currently use oracle, so for the "recursion" I use:

select Name from t_object where package_ID in (select  package_ID from t_package start with ea_guid = '{9F54BF3D-0F7A-4ec7-979C-7001A37FF9FC}' connect by parent_ID = prior Package_ID)

Where the ea_guid is the guid of the parent package.

Adding the filter for phase 6 would be:

select Name from t_object where package_ID in (select  package_ID from t_package start with ea_guid = '{9F54BF3D-0F7A-4ec7-979C-7001A37FF9FC}' connect by parent_ID = prior Package_ID) AND Phase = 6.0

If you don't have Oracle, the recursion is more complex.  I found an example here: http://www.ibm.com/developerworks/data/library/techarticle/dm-0510rielau/ but haven't tried it.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Filters on Package Explorer
« Reply #3 on: April 19, 2012, 08:34:53 am »
Actually, I think can get most of what you're after.

In the Package Browser, set it to show nested content and hierarchy.
Right click on the column headings and select 'Toggle Filter Bar'.
In the search box under the Phase heading type 6.0.

It doesn't filter out packages with no matches underneath them, but it's close.
« Last Edit: April 19, 2012, 08:35:57 am by simonm »