Book a Demo

Author Topic: Run a script at change of tagged value select box  (Read 3452 times)

dna303

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Run a script at change of tagged value select box
« on: June 30, 2014, 05:54:12 pm »
I have a script that applies to all objects (use cases + requirements) of a diagram a given color basing on a "tagged value" value.

I wonder if it is possible that this colorisation occurs once the tagged value (a selectbox) of the element is changed?

To sumup is it possible to catch "selectionchangeevent" of a tagged value select box to run a script?

Thank you in advance for your help.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Run a script at change of tagged value select
« Reply #1 on: June 30, 2014, 08:55:08 pm »
The most simple way would probably be to apply a shape script that does this very easily.

I'm not sure whether the OnContextItemChanged event is fired for a TV. Just give it a try.

q.

dna303

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Run a script at change of tagged value select
« Reply #2 on: July 02, 2014, 12:53:48 am »
Thank you for your help.

I will check how to implement this with shape scripts.