10-01-2026 06:51 AM
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.
Solved! Go to Solution.
10-01-2026 11:51 AM
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.
10-02-2026 05:06 AM
After some early AM testing I got it to work! Thank you so much for your help I truly appreciate it.