- This topic has 4 replies, 3 voices, and was last updated 12 hours, 21 minutes ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Forum Home › Forums › Understanding the Software › Using Formulas › can we implement pop-up messages on scadaWeb
Hello, can we implement pop-up messages on scadaWeb?
For example: When I write data in a channel, if I enter an illegal format or the value is out of range, how can I achieve the display of pop-up information on the interface? Thank you very much for your help!
public double CheckComm(double min, double max, double mult, string str = "" )
{
if (Cmd < min || Cmd > max) throw new Exception($"The value must be within {min} - {max} {str}");
return Cmd*mult;
}
public double CheckComm1(double min, double max, string str = "" )
{
if (Cmd < min || Cmd > max) throw new Exception($"The value must be within {min} - {max} {str}");
return Cmd;
}
Commands have a mode where you can raise an exception.
I made myself two formulas for convenience.
CheckComm(16, 32, 10, "degrees")
Thank you. I’ll try it right away
Hello,
In that particular case, throwing exceptions from formulas causes the messages to a user as written above.
Showing popups in general is also possible but may be more complicated.
Hello, I see. Thank you