Maximo

 View Only

 Automation Script won't launch

BRIAN BULLA's profile image
BRIAN BULLA posted Fri March 27, 2026 02:26 PM

Hi,

I'm working on an enhacement to our cloned Work Order Tracking application.  What I want to do is add a new menu item, and when the user clicks on it a script runs.

So far I have created a Sig Option in the app, added a new menu item to the app, and adjusted the security group settings.  With this, I can see the new menu item in the app.

Then I created the automation script.  I just started with something simple, to make sure I have everything connected.  A "Hello" message in a dialog.

service.error("SPP", "HELLO")

When I test the script in Automation Scripts, all is good.  But when I click on the menu item in the WO Tracking application, nothing happens.  The screen refreshes (ie. i see the blue circle spin for a moment), but the message never displays.

I've read through lots of online documents, and I seem to have everything in place, but maybe there is something I am missing.

My automation script is an Action Script....the launch point seems to be connected to the menu item ok....I'm running out of ideas and things to look for.

Any help/guidance is appreciated.

Thanks....here are the exact steps I have taken thus far....

1.      In Application Designer, modify the PLUSTWO application

a.      Go to Add/Modify Signature Options

b.      Add a new option with these settings:

A screenshot of a computer

AI-generated content may be incorrect.

c.      Go to Add/Modify Select Action Menu

d.      Add a new Menu item with these settings (modify Position value as required):

A screenshot of a computer

AI-generated content may be incorrect.

2.      In Security Groups, add permissions to the required group/groups to access the new action.

a.      Select the group

b.      Go to Applications tab

c.      Filter/Select for Work Order Tracking (Tr)

d.      Check the “Grant Access” box for Copy Asset to all Work Order Tasks

e.      Save the new settings

f.        ***  To see the changes you must logout/in at this point ***

3.      In Automation Scripts, create a Script with Action Launch Point

a.      Step 1 settings

A screenshot of a computer

AI-generated content may be incorrect.

b.      Step 2 settings

A screenshot of a computer

AI-generated content may be incorrect.

c.      Add the script code and click Create

A screenshot of a computer

AI-generated content may be incorrect.

MANU MAGANTI's profile image
MANU MAGANTI

Did you expand the Advanced Signature Options for your sigoption and select the "This is an action that must be invoked by user in the UI" option?

Sachin Kumar Gupta's profile image
Sachin Kumar Gupta

Hi Brian,

Please enable the UI action option in Advanced Signature Options; it should start working once the checkbox is selected.

Thanks,

Sachin Kumar Gupta

Maximo Consultant

BRIAN BULLA's profile image
BRIAN BULLA

Thanks Manu and Sachin, but unfortunately that did not make any difference.  I adjusted that setting and the same result when testing....I click on the Action and nothing appears on the screen like it does when I do "Test Script" directly in the Automation Script.

Any other ideas??

MANU MAGANTI's profile image
MANU MAGANTI

service.error() works for me. setWarning() doesn't. Try that and set the message as a Warning?

BRIAN BULLA's profile image
BRIAN BULLA

Thanks Manu!  I can now confirm that the script runs when I click on the Action item.

Weird though how with .setWarning it works in "Test Script" but not in the UI, and with .error it doesn't work in "Test Script" but it does in the UI.  :-)

Anyway, off to the real code now.

Thanks for the help!