Search code examples
maximo

Require status memo when work order status changes to a specific status (but not yet saved)


Currently using Maximo 7.6.0.8 on Oracle 12c (WAS 8.5.5.11). We have a special synonym to the CLOSE status that I want to use. Whenever the user changes the work order status to this status, I want to require the Memo field.

enter image description here

There is a blog post detailing how to do this via an automation script, but I can't get it to work as it is written.

Has anyone gotten it to work? I've tried variations such as changing WOSTATUS to WOCHANGESTATUS...

enter image description here

I've also turned on DEBUG autoscript logging, but I don't know how to debug the automation script or what I should be looking for. The script doesn't generate any error, but it also doesn't require the MEMO field as required when the status changes to a new status (not saved to database yet).


Solution

  • I ended up using the following script if the status I want to require MEMO on is NOTFAC. I was also able to configure a variation of this using Conditional Expression UI.

    if vSTATUS == "NOTFAC":
       vMEMO_required = True
    else :
       vMEMO_required = False
    

    enter image description here