How to get popup message by using java Script in Script Library

in Script Library I want a popup( to check some validation in Java script)  like we get through  Format control 

 

Note: option of RuleSet and Format control not avliable 

  • Try this one

    printMsg("bla", 3);
    
    function printMsg(sMessage, sSeverity) {
    	sSeverity = (sSeverity) ? sSeverity : "1";
    	if (!sMessage) {return false;}
    	var scRetVal = new SCDatum();
    	system.functions.rtecall("msg", scRetVal, sMessage, sSeverity);
    }
  • This is not a pop-up though (but will allow you to see things more directly).

    You can try a system.functions.callrad() for "mb.ok".

  • The challenge is, you can't call a message box inside the same thread as your javascript.  The RTE call has to have the 'separate thread = true', like:

    function popUp(msg){
        var rc_code
        system.functions.rtecall("callrad", rc_code, "mb.ok", ["text"], [msg], true)
    }

    So, maybe the better question is to step back a bit... what are you trying to accomplish?  What's the goal?

  • The challenge is, you can't call a message box inside the same thread as your javascript.  The RTE call has to have the 'separate thread = true', like:

    function popUp(msg){
        var rc_code
        system.functions.rtecall("callrad", rc_code, "mb.ok", ["text"], [msg], true)
    }

    So, maybe the better question is to step back a bit... what are you trying to accomplish?  What's the goal?

  • The challenge is, you can't call a message box inside the same thread as your javascript.  The RTE call has to have the 'separate thread = true', like:

    function popUp(msg){
        var rc_code
        system.functions.rtecall("callrad", rc_code, "mb.ok", ["text"], [msg], true)
    }

    So, maybe the better question is to step back a bit... what are you trying to accomplish?  What's the goal?