IBM Support

Turning off Asset Auto Population Using Automation Scripting

Question & Answer


Question

Is there a way to turn off asset auto population in Work Order Tracking while creating work orders against a location having only one asset associated?

Answer

Yes. It is possible to turn off Asset auto population using Automation Scripting as described below:

- Log into Maximo as maxadmin

- Go to Automation Scripts application

- Select Action > Script with Attribute Launch Point

- In Create Script with Attribute Launch Point dialog, enter the following:
Launch Point = WOASSETCLR
Object = WORKORDER
Attribute = LOCATION

- Click on New

- Click on Next button and enter the following:
Script = SCRIPT01
Script Language = jython

- From Variables table-window, click on New Row and enter the following:
Variable = v_assetnum
Binding Type = ATTRIBUTE
Variable Type = INOUT
Launch Point Attribute = WORKORDER.ASSETNUM

- Click on Next button

- In Source Code, enter the following:
if v_assetnum is not None:

v_assetnum=None

- Click on Create button

- From system message "BMXAA7989I - The launch point was created successfully", click on Close

- Change Script Status to ACTIVE

[{"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Work Order Tracking","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.5","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
17 June 2018

UID

swg21648027