MaxTECH Maximo Technical User Group

Maximo Technical User Group

Designed to allow Maximo Administrators and Technical support staff a place to ask and answer technical and functional questions around Maximo. Learn from each other, collaborate and help improve Maximo in your organization.

 View Only
  • 1.  MOC - Managing Duplicates

    Posted 02/03/20 01:32 PM
    ​I have found some issues with handling MOC Duplicates.

    I have deployed the script PLUSGMOC.DUPLICATE to add some functionality.
    Custom attributes that I don't want to copy have been added to the Exclude Data list on the PLUSGMOC object.
    The script clears some standard fields such as Temporary Until Date etc.
    The script also adds the Reviewers (PLUSGMOCRVLST) and Approvers (PLUSGMOCAPPRLIST) from the mbo (original MOC) to dupmbo (duplicated MOC).

    However, the "Comments" field on Pre-Start, Post-Start & Closure Actions is not being reset. I have tried both setValueNull() and SetValue("COMMENTS","") but this appears to be ignored.

    Also, the Classification is copied and I would like to either not copy it or at least set the ALNVALUE on WORKORDESPEC to null.



    ------------------------------
    Simon Barnes
    Principal Consultant
    BPD Zenith
    Calgary, Canada

    ------------------------------