Book a Demo

Author Topic: Element Notes in t_object  (Read 6837 times)

JonathanP

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Element Notes in t_object
« on: August 13, 2014, 05:16:34 am »
I am using a template fragment with a custom SQL query to retrieve related elements of a specific stereotype for a report. In my query I would like to retrieve the element "Notes", but am unable to find them in the t_object table. InsideEA states that the Notes column must be named, e.g. "SELECT t_object.Notes AS Notes, * FROM t_object" in order to appear, but that is not working for me.

Has the Notes column moved to another table or is there something else I need to do to retrieve it? I'm using EA 11 and have both a local EAP and a SQL Server 2008 repository and it fails on both.

-JP

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Element Notes in t_object
« Reply #1 on: August 13, 2014, 05:42:19 am »
OMG what happens here? I added this remark once as EA pre-compiles the SQL and it had been working. Now it looks like it doesn't accept that. I will check and come back with an update.

q.
« Last Edit: August 13, 2014, 05:42:34 am by qwerty »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Element Notes in t_object
« Reply #2 on: August 13, 2014, 05:46:32 am »
Uh. My fault :-[ Seems I copy/pasted the wrong way and you're the first to fall into the pit. This will work:
Code: [Select]
select t_object.Note as [Notes] from t_objectI'll update the book immediately.

q.

JonathanP

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Element Notes in t_object
« Reply #3 on: August 13, 2014, 06:11:32 am »
That works, thanks q!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Element Notes in t_object
« Reply #4 on: August 13, 2014, 10:09:04 am »
There is a View Notes command in the toolbar for the Model Search. It gives you a choice of Hide Notes (which is default), Notes Preview, or Full Notes.
The Sparx Team
[email protected]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Element Notes in t_object
« Reply #5 on: August 13, 2014, 06:40:50 pm »
Oh, indeed. I had to search a moment. It's the fifth icon top left.

q.

JonathanP

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Element Notes in t_object
« Reply #6 on: August 15, 2014, 12:47:51 am »
The View Notes button shows the notes, but not the column name. Unfortunately, the underlying problem is that the column name in t_object is "Note" and not "Notes" like it is in every other table that has notes. Not sure if that was a mistake or if you guys really just wanted to make it hard for us to get the notes ;) j/k.