Maximo

 View Only
  • 1.  Increment Worklog Entry

    Posted Wed October 12, 2022 10:23 AM
    Hi Gurus,

    I have a requirement to display all data that has been updated and display them as a summary in the worklog long description field. Used Object launchpoint and got the mbo count and loop it until it set values the data in worklog but only able to get the first data that was updated.

    Thanks

    ------------------------------
    Vincent Yap
    ------------------------------

    #Maximo
    #AssetandFacilitiesManagement


  • 2.  RE: Increment Worklog Entry

    IBM Champion
    Posted Thu October 13, 2022 10:22 AM

    Hi Vincent,

    Do you need to get all the modified fields on the owning mbo? So you've created a worklog on work order for example, and on save you want to know that the workorder duration, and failure code were changed for example?

    You could loop through the fields to check if they've changed using

    longdesc = ""
    workorder = mbo.getOwner()
    loop through the attributes
    if (workorder.isModified(attribute))
    longdesc = longdesc + "<br/>" + attribute +" : " + workorder.getString(attribute)

    mbo.setValue("DESCRIPTION_LONGDESCRIPTION",longdesc);


    Sorry if I've misunderstood that requirement!

    Paul



    ------------------------------
    Paul Irving
    Product Development Manager
    BPD Zenith Ltd
    ------------------------------



  • 3.  RE: Increment Worklog Entry

    Posted Thu November 03, 2022 04:04 AM
    Hi Paul,

    Apologies for the delayed response.

    Thanks for the idea, I used append[] instead to get the values and display them as string in worklog..


    Regards,
    Vincent

    ------------------------------
    Vincent Yap
    ------------------------------