Hi Jennifer,
I'm using Maximo 7.6.0.8, and when I create a Materials Requisition using the Create Requisition application, if I manually enter an ITEMNUM that has an
Item Status = OBSOLETE, I get the red X error in the field. If I use the Lookup, OBSOLETE items aren't even in the list. I can still use Item Numbers where the Item is in PENDOBS status. Is this the behavior you see in your system? Are your users using the OOTB Create Requisition application? Were there modifications to the field used on that form, or to the Lookup? Maybe this is a bug in your version of the software?
To make sure the script is actually running:
1) Make sure your system is not in Admin Mode. Check the Database Configuration application, Manage Admin Mode action. If you click that, the dialog box should prompt you to Turn Admin Mode ON, meaning it's currently OFF.
2) In the Automation Script, make sure the Active box is checked on the main tab, AND look at the Launch Points tab to make sure the Active box is checked for the Launch Point.
Please confirm that SPECIALORDER is a value that was added to the Alphanumeric Domain ITEMTYPE. That's not an OOTB value, and normally that's something I would think of in terms of Inventory, not Item.
While on that thought. . .the logic you're trying to build into your script, are you trying to prevent users from entering "invalid" ITEMS or "invalid"
parts not in stock. Ultimately, I don't understand
why you're having to script something to rule out ITEMS because the application should already do that. If you're trying to filter out certain things based on how those Items exist or don't exist in INVENTORY, that's a different story.
------------------------------
Travis Herron
Pensacola Christian College
------------------------------
Original Message:
Sent: 05-06-2021 11:18
From: Jennifer Romeiser
Subject: Automation Script appears to not be running
We are a new support team to Maximo. It appears that we have an active automation script that is not working. We want to make sure that an item number is active. It appears that a tech person can manually type in an inactive item number and submit. Any suggestions would be greatly appreciated.
load("nashorn:mozilla_compat.js");
importClass(Packages.psdi.server.MXServer);
if (mbo != null && !mbo.isNull("ITEMNUM"))
{
if (!mbo.getString("ITEM.ITEMTYPE").equalsIgnoreCase("ITEM") && !mbo.getString("ITEM.ITEMTYPE").equalsIgnoreCase("SPECIALORDER"))
{
errorgroup = "mr";
errorkey = "itemnum";
}
}
#Administration
------------------------------
Jennifer Romeiser
Carilion Clnic
------------------------------