HOWTO: Throwing a Warning Dialog in an Automation Script

June 6, 2017 PeteHalbeisen

In this brief blog, we'll throw a warning dialog in an Automation Script. We'll be using python.

The script necessary to throw the warning will take the following form:

if some_condition:
    warngroup = "warning_group"
    warnkey = "warning_key"

If there are parameters in the message, you can create a string array with the necessary substitutions, e.g.:

   warnparams = [string1, string2, etc.]

If it's an error dialog you want then use errorgroup, errorkey and params.

As an example, let's make a simple SR object automation script with the following code snippet:

if mbo.getString('ticketid') == "TEST":
    warngroup = "mygroup"
    warnkey = "mykey"
    warnparams = ["dog","cat"]


Happy Scripting!





Previous Article
HOWTO: Maximo Email: Retrieving the Office 365 SSL Certificate

In order to use Office 365 email services with Maximo Email, it is necessary to import that service's SSL c...

Next Article
BiLog: New Maximo 7608 Ad Hoc reporting features

    Loving new.   New Maximo work centers   New Maximo 7608 features and  7606 features   New Stories   And...


Want our latest news? Subscribe to our blog!

Last Name
First Name
Thank you!
Error - something went wrong!