G Web Development Software

cancel
Showing results for 
Search instead for 
Did you mean: 

Tank Level Fill Color Change: G Web Software

Solved!
Go to solution

Good morning, 

 

We have silos in our facility that we monitor that I would love to have the fill color change from Blue to Red when they drop below 20. I am no CSS/JS/HTML expert, that is where my electrical engineering experience stops. Is there a way to easily achieve this color change? I know this was easily done with property nodes at sometime but they are gone from G Web. 

 

CMullinsEE_0-1790855418106.png

 


"I am prepared to go anywhere, provided it be forward." - David Livingstone
0 Kudos
Message 1 of 3
(317 Views)
Solution
Accepted by topic author CMullinsEE

Hi CMullinsEE,

 

There is not a property node to set the fill of a tank programmatically in G Web Development Software 2022 Q3. I did find a way to update the fill color for tank controls using the JavaScript Library Interface (JSLI).

I modified the Control Extensions for WebVI example to include an example of using the JSLI to change the tank fill color as the Numeric - Fill - Set VI. As this modifies the internal behavior of an NI control make sure to test the behavior thoroughly in your application and be prepared to modify the example as needed.


Milan
Message 2 of 3
(290 Views)

CMullinsEE_0-1790935567006.png

 

After some early AM testing I got it to work! Thank you so much for your help I truly appreciate it. 


"I am prepared to go anywhere, provided it be forward." - David Livingstone
Message 3 of 3
(250 Views)