Skip to Content
author's profile photo Former Member
Former Member

Display a message from a Router Script

Hi all,

Ive been playing around with router scripts and Ive successfully managed to get them to make decisions, send emails, log an error etc but I cannot find any way of making the script display a message to the user .

Is there anyway of doing this ? either as a popup window (like the text work instruction) or into the special instuction area of the POD.

We are running visiprise 4.2 and Ive tried several things that I have found in the javadocs but nothing has worked so far :o(

Thanks for any help you can give.

Kev

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2011 at 03:55 PM

    Kev

    You can do this by throwing a standard error. In POD maintenance, you can make this appear as a popup (this affects all error messages though) by checking Error Popup on the main tab.

    Throw an error by for example:

    importClass(Packages.com.genrad.frame.BasicBOBeanException);

    throw new BasicBOBeanException(101, new Data("ERROR", "Some error message"));"

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      After re-reading your post, I realized that your running 4.2, not 6.0.....

      The rhinoscript engine can compile javascript, so maybe you can try using some javascript instead.

      I believe I had success with using the javascript "alert" function in 5.2 which might also work for 4.2.

      So maybe try a script containing something like...

      alert("This is a popup message to the operator");

      Note: as Alexander said, scripts are really for next step decision, so maybe be aware of any unintended consequences from using javascript within the router script.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.