Book a Demo

Author Topic: Custom search queries not showing in model view  (Read 4776 times)

mrblack12

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
    • View Profile
Custom search queries not showing in model view
« on: October 30, 2016, 01:49:49 am »
Hi,

I'm constructing a number of model views, based on search queries I have built and saved as My Searches. It looks as though the 'Properties' window of a (search) model view does not show all the queries I've stored under My Searches, in the 'Search' dropdown list (just some of them). When I go to the 'Manage views' window however, the searches are displayed in the 'Searches' dropdown. And when I select one and run it, it performs the search correctly.

But when I close the 'Manage views' window and return to the 'Properties' window again, the selected search is still not showing in the 'Search' dropdown list. This is bugging the hell out of me >:( : is it really a (known) bug or am I doing something wrong?

Any nsights on this would be greatly appreciated! ;)

Rick

natvig

  • EA User
  • **
  • Posts: 65
  • Karma: +7/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Custom search queries not showing in model view
« Reply #1 on: October 30, 2016, 11:16:44 pm »
Hi Rick,

If you are trying to build model views from SQL-searches, I think you need to include the following two columns in your search:

Code: [Select]
SELECT req.ea_guid AS CLASSGUID, req.Object_Type AS CLASSTYPE, ...
FROM ...

The reason is that the model view list items have icons representing the object type found in the search and since the list items have a context menu which allows you to find the listing in the project browser etc.

/Hans

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Custom search queries not showing in model view
« Reply #2 on: October 31, 2016, 06:26:25 pm »
To add to what Hans said, the 'AS' keyword needs to be UPPERCASE for the searches to be used in model views.

Geert