Hello Everyone,
I have Alarm status table, I want to copy notes from selected alarm to another component like text area. Any thoughts on how to do this?
As shown in picture below, Just get the notes string out of table into text area.
In Vision, the Alarm Status Table has a âselectedAlarmsâ dataset property. From here, you can pull out the display path or source path to perform a system.tag.read() to read the alarm properties. You can append the â/Alarms/{name_of_alarm}.Notesâ to the tag path to read the alarm properties directly.
example:
tagpath = [default]myTag
notes = system.tag.read("[default]myTag/Alarms/highFire.Notes").value
You can reference this doc to read values from datasets.
https://docs.inductiveautomation.com/display/DOC80/Datasets
1 Like