Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: MichPaule on January 18, 2024, 03:27:38 am
-
Having created a PropertiesTab with properties configured to readonly='false' I'm wondering how one could get notified when an user changes the value of such a property.
All EA_ callbacks I tried won't be triggered upon value change.
Is there something I'm missing?
TIA for help!
Michael
-
The strategy for these type of things is often
- Register for the context item changed event, and remember the values you are interested in
- When a new element is selected, check the values of the previous element again to know if they have been changed.
Geert
-
The strategy for these type of things is often
- Register for the context item changed event, and remember the values you are interested in
- When a new element is selected, check the values of the previous element again to know if they have been changed.
Hi Geert,
exactly this I did in my desperation ;)
It works but somehow I consider it as an ugly hack and not a proper solution.
Seems I'll have to learn to live with it...
Thanks!
Michael
-
It works but somehow I consider it as an ugly hack and not a proper solution.
Seems I'll have to learn to live with it...
Yes, there will be lots and lots more of these hacks and workaround in your future if you keep writing automation for EA.
Better get used to it. :-X
Geert
-
It works but somehow, I consider it an ugly hack and not a proper solution.
Seems I'll have to learn to live with it...
Yes, there will be lots and lots more of these hacks and workarounds in your future if you keep writing automation for EA.
Better get used to it. :-X
Geert
Wot 'e sed!
Paolo
-
Update!
For unknown reason a new event EA_OnAddinPropertiesTabChanging (https://sparxsystems.com/enterprise_architect_user_guide/16.1/add-ins___scripting/on_addin_prop_change.html) appeared.
I'm almost sure it hadn't been there when I did my research some time ago.
Looks like I'll have to investigate on this... ;)
Michael
-
Looks like I'll have to investigate on this... ;)
Success!
After slightly adapting Geerts EA-Toolpack to incorporate the new event it is working fine now on EA 16.1.1627 (64 bit).
Still wondering since when it was documented.... :-[
-
I found it in the documentation for 15.1, but not in the docs for 14.0
Geert
-
I found it in the documentation for 15.1, but not in the docs for 14.0
Thanks Geert,
blame on me for not having looked more thoroughly :-[
Michael