How to show an error message by automation script?
Cynthia Wang 270001XXTS Visits (16091)
In Maximo application, you may want to validate some attributes before save the record. If the attributes are incorrect, you would like the system to gave error message to indicate the users to fix the data before saving the record. There are many ways to achieve this function in Maximo, while today I would like to give an example by using automation script.
For example, we have a use case like this:
In Work Order Tracking application, ESTDUE is set as "0:00" by default, while we prefer user input correct value before save the record.
And how to achieve this function? You may try this way:
Step 1: Create new warning message
# Please note, you may add warning message here.
If it is a warning message, the system would not stop the user saving the record.
Step 2: Create automation script
2. Next step
3. Next Step:
if (due == '0:00'):
# If you are using warning message, the code for warning message will be:
warngroup = "mygroup"
Please refer this blog for details:
Now, please go to work order tracking application and create a new work order. When save it, error message would occur if ESTDUE is "0:00".