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
------------------------------
Original Message:
Sent: Wed October 12, 2022 02:10 AM
From: Vincent Yap
Subject: Increment Worklog Entry
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
------------------------------
#AssetandFacilitiesManagement
#Maximo