Book a Demo

Author Topic: Model Views Problem  (Read 4649 times)

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Model Views Problem
« on: January 22, 2015, 10:36:52 pm »
Hi All

I am attempting to create a Search Folder using Model Views, but when I attempt to set the search, the drop list of searches only shows those in Built-in, none in My Searches

The search I have created (its in SQL) works correctly, and is visible in the Search View.

Oddly, when clicking the ... button adjacent to the list of searches, I can see all My Searches ...

The same behaviour in EA v 10, EA v 11.1 and EA v12 RC2

The end result is I cannot assign a custom search to any search folder in Model View

Any advice?

Cheers

Phil
Models are great!
Correct models are even greater!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Model Views Problem
« Reply #1 on: January 22, 2015, 11:24:12 pm »
The list shows only those that have ea_guid AS CLASSGUID as the first column.

q.

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Model Views Problem
« Reply #2 on: January 22, 2015, 11:50:00 pm »
Thanks for that, I do indeed have the CLASSGUID, but I have now managed to get it to work.

I simplified the query so after the mandatory fields CLASSGUID and CLASSTYPE, I have only reported fields from t_object.

If I try to report fields from other tables, for example t_package and use joins between t_object and t_package it does not seem to work for Model Views, but does run OK in the Query View

Thanks for your reply

Phil
Models are great!
Correct models are even greater!

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Model Views Problem
« Reply #3 on: January 23, 2015, 12:50:22 am »
Found the issue!

Queries such as
[highlight]
SELECT t_object.ea_guid AS CLASSGUID, t_object.Object_Type AS CLASSTYPE
[/highlight]

work

but queries such as

[highlight]SELECT t_object.ea_guid as CLASSGUID, t_object.Object_Type as CLASSTYPE[/highlight]

don't work with Model Views, but do for Model Searches!

Yes the word as is case sensitive

To be fair the user guide example does have the word AS in upper case, but does not mention it MUST be upper case.

Cheers

Phil
Models are great!
Correct models are even greater!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Model Views Problem
« Reply #4 on: January 23, 2015, 01:56:54 am »
Ah. The [highlight]AS[/highlight] is different. Hard to find :D But not an unknown behavior with EA.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Model Views Problem
« Reply #5 on: January 23, 2015, 07:10:13 pm »
Yep, Yep, Yep, now you mention it it all comes back. (must have suppressed it I guess ;D) I had a similar issue with queries where I have to use 'AS' iso 'as'

Geert