How to implement interactive buttons within the Synoptic Panel (SVG view)? #3286
Unanswered
FelipeCliment06
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I'm designing an electrical substation unifilar diagram using the new Synoptic Panel component in SCADA-LTS with an Inkscape-generated SVG file.
Right now, telemetries and status indicators (SLTS_point_ and SLTS_state_) work as expected for monitoring readings and changing element colors. However, I need to implement interactive control buttons (OPEN / CLOSE) directly inside this synoptic view to operate breakers/reclosers.
In the legacy Graphical Views, this was easily done with a Script Component or HTML button calling mango.view.setPoint(pointId, componentId, value).
In the modern Synoptic Panel:
Is there a built-in way or specific ID convention (similar to SLTS_state_) that makes an SVG shape clickable to write to a Settable Data Point?
If not natively supported by the UI mapper, what is the recommended practice to send commands from an SVG element in the new UI without breaking the component? (e.g., REST API call from an embedded SVG script, custom event handler, or overlaying components)?
Any advice or example implementation would be greatly appreciated.
Thanks in advance!
All reactions