Thanks Jason – I kinda thought that might be the case.
We've abandoned that strategy and just told the user that they will have to do a manual step.
Shannon Rotz
Maximo Certified Deployment Professional
Maximo Certified Solution Advisor
President, InComm Solutions Inc.
(604) 562-8515 (cell)
Shannon.rotz@incommsolutions.ca
Original Message:
Sent: 8/9/2024 10:55:00 AM
From: Jason Uppenborn
Subject: RE: Is there a way to determine whether a WO was generated using Frequency Criteria?
It is unlikely that the Mbo that collected those parameters will be in the getOwner() stack. So, if it is available, you're going to have to use the active WebClientSession or something to find it. Hopefully this sets you looking in a successful direction.
------------------------------
Jason Uppenborn
Cohesive
------------------------------
Original Message:
Sent: 08-08-2024 20:21
From: Shannon Rotz
Subject: Is there a way to determine whether a WO was generated using Frequency Criteria?
Hi Brad: to clarify - this isn't about the Frequency of the PM. This is about the user going into the PM screen and using the "Generate Work Orders" command. Inside that dialog box, there's a choice to "Use Frequency Criteria?" or not. If you leave the checkmark on, then you have to specify something in the "Generate WOs Due Today" field as well.
What I want to know is: which option did the user pick? Did they force the work order generation by taking the checkmark off, or not?
------------------------------
Shannon Rotz
InComm Solutions Inc.
Original Message:
Sent: 08-08-2024 15:25
From: Brad Delong
Subject: Is there a way to determine whether a WO was generated using Frequency Criteria?
Depending upon the version of Maximo and the other modules installed, then possibly right now but if not then it is not hard to add it. In my version, I see WorkOrder.PLUSCFREQUENCY and WorkOrder.PLUSCFREQUNIT but I know those are from additional modules but can't tell you for sure which ones.
But you can easily do the work yourself if those are not there making two new fields and use a crossover domain. So make a field for frequency and another for the frequnit and add those fields to a crossover domain on the WorkOrder.PMNum field and you are set.
------------------------------
Brad Delong
WDW
Original Message:
Sent: 08-08-2024 15:21
From: Shannon Rotz
Subject: Is there a way to determine whether a WO was generated using Frequency Criteria?
When a user goes into the PM record and uses the "Generate Work Order" command, he has to specify whether to "Use Frequency Criteria" or not. We would like to tap into this parameter in an autoscript.
Does anyone know how to retrieve this parameter value? It's in a non-persistent object, but I would think there's a way to determine what's in memory when the WO is being created.
Thanks in advance.
Shannon
#WorkManagement
------------------------------
Shannon Rotz
InComm Solutions Inc.
------------------------------