Book a Demo

Author Topic: RTF document based on Search with SQL fails  (Read 3507 times)

Marco Schramp

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
RTF document based on Search with SQL fails
« on: July 12, 2011, 12:59:33 am »
I'm trying to get a RTF report, where the set of elements is based on a search result. In order to drill down to the problem, I've gone to the simples query possible:
select o.ea_guid as CLASSGUID,
o.Object_Type as CLASSTYPE,
o.name as Name
from t_object as o


When this query runs through the search window it is ok. my entire (small) model is returned.

Then I associate the model document to the search by specifying the Searchname tagged value. When trying to generate the report, I get an error message. The log-window shows the text below:
To run a custom search you must specify ea_guid AS CLASSGUID in your select statement


I don't understand this, because the CLASSGUID is in the query.

Please suggest or ask good questions for more info to solve this. I'm lost.

Marco

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: RTF document based on Search with SQL fails
« Reply #1 on: July 12, 2011, 08:13:48 am »
It's case sensitive. You need 'AS' not 'as'.

Marco Schramp

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: RTF document based on Search with SQL fails
« Reply #2 on: July 13, 2011, 04:56:14 pm »
 :-? Very unlogical, but it works....