Book a Demo

Author Topic: Updating Notes field  (Read 7899 times)

Maggie

  • EA User
  • **
  • Posts: 106
  • Karma: +0/-0
    • View Profile
Updating Notes field
« on: October 14, 2010, 09:31:44 pm »
Hello
I have an addin that attempts to update the notes field of a use case element when taht element is updated.
I generate the required string and assign it to the notes field of the use case element and call Update and Refresh on the element. This seems to work on some occasions and not on others (i am trying to discover under what circumstances it does not work).

Has anyone come across this type of thing before?
Has anyone any ideas on why this might be

Mike Chapman

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Updating Notes field
« Reply #1 on: October 15, 2010, 01:03:11 am »
Don't know if this is just stating the obvious, but just in case...  I would not expect it to work on a top level package, they do not support adding or editing notes even through the GUI.  

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Updating Notes field
« Reply #2 on: October 15, 2010, 06:45:22 pm »
Maggie,

Do you check the returnvalue of update(), and if false the getLatestError()?

Geert

Maggie

  • EA User
  • **
  • Posts: 106
  • Karma: +0/-0
    • View Profile
Re: Updating Notes field
« Reply #3 on: October 15, 2010, 07:10:24 pm »
I will give this a try

Thanks Geert

Maggie

  • EA User
  • **
  • Posts: 106
  • Karma: +0/-0
    • View Profile
Re: Updating Notes field
« Reply #4 on: October 15, 2010, 07:25:42 pm »
Hi
The return is true

Anyother clues

maggie

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Updating Notes field
« Reply #5 on: October 15, 2010, 08:54:14 pm »
No, a database trace could help.

Geert

Maggie

  • EA User
  • **
  • Posts: 106
  • Karma: +0/-0
    • View Profile
Re: Updating Notes field
« Reply #6 on: October 15, 2010, 08:57:45 pm »
Thanks Geert
Pardon my ignorance bu how do i get a database trace?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Updating Notes field
« Reply #7 on: October 15, 2010, 09:45:30 pm »
Depends on the database you are using.
For SQL Server there is a tool called "SQL Server Profiler", but I wouldn't know for other types of databases.

Geert