Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Custom WORKTYPE field in JP: Apply to WOs?

    Posted Mon June 21, 2021 07:12 PM
    Edited by System Admin Wed March 22, 2023 11:48 AM
    MAM 7.6.1.2:

    I have a custom WORKTYPE field in JOBPLAN. 

    How can I automatically apply the JP work type when a user applies a JP to a WO?


    Related post here:
    Use Organizations-->Work Type as lookup for custom JOBPLAN.WORKTYPE field?
    #AssetandFacilitiesManagement
    #Maximo


  • 2.  RE: Custom WORKTYPE field in JP: Apply to WOs?

    Posted Tue June 22, 2021 08:22 AM
    You can create a custom attribute on job plan and then cross it over to WO. But you'll have to decide which one you want to win when you get into the PM scenario where you could have discrepancy between the PM and JOBPLAN. Most of the time when we've done something like this for customers, they wanted the PM to win so we had to ensure the job plan value wouldn't cross over in that scenario. This can be accomplished on the cross over domain by implementing a condition on the destination to see if it's a PM work order.

    ------------------------------
    Steven Shull
    Director of Development
    Projetech Inc
    Cincinnati OH
    ------------------------------



  • 3.  RE: Custom WORKTYPE field in JP: Apply to WOs?

    Posted Tue December 21, 2021 08:58 AM
    Edited by System Admin Wed March 22, 2023 11:49 AM

    This script seems to work:
    (Attribute launch point on WORKORDER.JPNUM)
    if mbo.isNull("WORKTYPE") and mbo.getString("JOBPLAN.CGWORKTYPE"):
        mbo.setValue("WORKTYPE", mbo.getString("JOBPLAN.CGWORKTYPE"))


    "JOBPLAN." is an OOB relationship:



    Script details:




    #Maximo
    #AssetandFacilitiesManagement