Forum Discussion
Amjad1002
3 years agoHelper III
How Signal Light flashing
Hello Folks, I am trying me make my report where signal light in Red flash. I checked some old posts but it is based on HTMl files I believe. If anyone know how to set up blinking the signal light ...
Greg_Deckler
3 years agoCommunity Champion
Amjad1002 Sure:
Blink =
VAR __color = "Red"
VAR __color1 = "Green"
VAR __lineColor = "Black"
VAR __lineThickness = 1
VAR __radius = 9
VAR __opacity = 1
VAR __rand = RAND()
VAR __header = "data:image/svg+xml;utf8," &
"<svg
xmlns:dc='http://purl.org/dc/elements/1.1/'
xmlns:cc='http://creativecommons.org/ns#'
xmlns:svg='http://www.w3.org/2000/svg'
xmlns='http://www.w3.org/2000/svg'
width='100%' height='100%'>"
VAR __footer = "</svg>"
VAR __shapeTextCircle = "<circle cx='10' cy='20' r='" & __radius & "' fill='" & __color & "' fill-opacity='" & __opacity & "' stroke='" & __lineColor & "' stroke-width='" & __lineThickness & "'> " & "<animate attributeName='opacity' from='1' to='0' dur='1s' begin='0s' repeatCount='indefinite'/></circle>"
VAR __shapeTextCircle1 = "<circle cx='10' cy='20' r='" & __radius & "' fill='" & __color1 & "' fill-opacity='" & __opacity & "' stroke='" & __lineColor & "' stroke-width='" & __lineThickness & "'> "
RETURN IF([Flag],__header & __shapeTextCircle & __footer,__header & __shapeTextCircle1 & __footer)Amjad1002
3 years agoHelper III
It did not work,
- Greg_Deckler3 years agoCommunity Champion
Amjad1002 Remember, posting to the forums munges the HTML/XML. NOTE: In the __header VAR, you need to change the : to an actual colon ( : )
- Amjad10023 years agoHelper III
I adjusted the colon code but I am still not getting green stable traffic light. I can see red traffic light is bliking with new code. I am attached new code screenshot as well.