Hi Dojo,
I've written a script for the customer tied to a "toggle button" on a Visio, which is linked to a view:
Enabled -> all elements of a certain protocol go from alarm template a to b
Disabled -> same elements go from alarm template b to a
In addition to this, the customer wants a critical alarm generated on Disabled, but they want it to go back to normal on Enabled again.
For now, I've solved this by using the Generic Dummy protocol. I apply an information template to hide all params but one and rename it to what the customer wants. I can then alarm on this one and set the alarm from the script based on enabled/disabled.
My question: is there a better way to do this? It seems kind of like a workaround to use this generic dummy protocol, but then again managing an alarm from a script like that may be more work.
![](https://community.dataminer.services/wp-content/uploads/wp-user-manager-uploads/2020/10/MicrosoftTeams-image.jpg)
I guess it has to be an alarm because it needs to be something they then can forward it to their ticketing software.
Hi Alex,
If you need to forward a notification to their ticketing software, maybe a possible option is to send that notification through the script. Via script you could implement an API call that can send this information. Or do you need to have an alarm in DataMiner linked to a ticket in their ticketing software?
We ended up just using the script -> Generic Dummy solution as described in the question.
Hi Alex,
Small question, does it need to be an alarm?
Is it not an option to have two shapes with two different colors that show the current state of the toggle button? Based on the value you can display one of these two shapes. You can display this logic in a landing page so every time a user log in to the system, they can see it.