can we implement pop-up messages on scadaWeb

Forum Home Forums Understanding the Software Using Formulas can we implement pop-up messages on scadaWeb

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17731
    詹森
    Participant

    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!

    #17732
    manjey73
    Participant
    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")

    #17733
    詹森
    Participant

    Thank you. I’ll try it right away

    #17734
    Mikhail
    Moderator

    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.

    #17736
    詹森
    Participant

    Hello, I see. Thank you

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.