Book a Demo

Author Topic: Notifications of Tagged Value changes  (Read 4901 times)

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Notifications of Tagged Value changes
« on: August 12, 2013, 06:30:27 am »
Hi

Does anybody know if there is a event that is issued when a tagged value is changed on an element. And if so its signature?

Something similar to EA_OnElementTagEdit but for other tagged values e.g. enums, strings?

Thanks

PS: I perhaps should have mentioned that EA_OnNotifyContextItemModified is called when a tagged value is changed but doesn't provide the details of which tagged value has been changed (or does it somewhere?)
« Last Edit: August 12, 2013, 07:48:26 am by MrWappy »
EXploringEA - information, utilities and addins

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Notifications of Tagged Value changes
« Reply #1 on: August 26, 2013, 05:00:17 pm »
I don't think something like that exists.

If you really need to know which tagged values is changed you'll have to somehow make a backup copy of the element before it is changed, and then check the backup against the current values in the EA_OnNotifyContextItemModified event.

I think you can use the EA_OnContextItemChanged to make a backup copy of your element.

Geert

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: Notifications of Tagged Value changes
« Reply #2 on: August 27, 2013, 05:19:25 pm »
Hi Geert

Thanks for this - if you don't know a method, I don't and nobody else has responded I assume it doesn't exist and my dream of an elegant solution goes west :(

Your approach looks like the way I'll have to go - I was trying to avoid keeping data in 2 places, just doesn't seem right.

Rgds
EXploringEA - information, utilities and addins

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Notifications of Tagged Value changes
« Reply #3 on: August 27, 2013, 08:16:50 pm »
Quote
Your approach looks like the way I'll have to go - I was trying to avoid keeping data in 2 places, just doesn't seem right.
Absolutely. However, things often don't work the way we expect them to do. So does EA. This is one of the work arounds you need in such cases.

q.

Jonathan Lubach

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Notifications of Tagged Value changes
« Reply #4 on: September 10, 2013, 01:59:12 am »
Hi @all,

I think this event is really missing in the automation interface. To know which element has been changed is one important thing, but the even more important thing is to know what changed in this element.

Has anybody of you submitted a change request to Sparx for this?

Thanks!
Jonathan
Enterprise Architect Corporate Edition v12.1
Windows 7 64bit

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Notifications of Tagged Value changes
« Reply #5 on: September 10, 2013, 05:05:21 am »
Simply go ahead and send your request. Somehow Sparx will put more weight in a feature if it's requested by more than one person. At least many of us believe in that.

q-