Maximo Open Forum

 View Only

 Disallow Workorders showing up on the Related Work Orders dialog, if their status is CAN,CLOSE or COMP

  • Everything Maximo
DIMITRIOS MIRAS's profile image
DIMITRIOS MIRAS posted 05-22-2026 07:10

In MAS Manage > Workorder app > Related Work Orders table, I wonder if there's a way to NOT admit workorders on the Select Work Orders dialog, if WO status is in (CAN, CLOSE, COMP). Preferably through a script.

Any hint, is much appreciated,

Dimitris

Allan Henle's profile image
Allan Henle

Hi Dimitrios,

I am not very good at writing automation scripts. I am sure it is possible to do through an automation script. If you only want it in the WOTRACK app, you can edit the XML for that table and add a WHERE clause. You could also edit the relationship RELATEDWO, however, anywhere this is used will exclude the statuses. 

Thank you,

Isak Söderback's profile image
Isak Söderback

You should really consider to solve this through the XML instead. Make sure to cover both the Select Work order-scenario and the lookup-scenario for the work order attribute.


If you want this isolated to the work order application then create clone(s) with a suitable where clause for,

  • dialog with id "selectwoonrelatedrec" in LIBRARY.xml, and reference your new id from the button and event
  • lookup with id "relatedwo" in LOOKUPS.xml, and reference your new id from the attribute and lookup-setting