On almost every application Maximo provides a useful entry in the action menu to duplicate the selected record. When this action is performed, some of the field are intentionally wiped from Maximo. For example if you try to dupicate an Asset you will notice that Maximo resets some fields like ASSETNUM, LOCATION and SERIALNUM.
It may happen that you have added some custom fields on a Maximo object and you want to be cleaned when a record is duplicated. In such case, all you have to do is to override the skipCopyField(MboValueInfo mvi) method of the object’s data bean.
Extend the object’s class handler as described here and put the following method in the Mbo class.
protected boolean skipCopyField(MboValueInfo mvi) throws RemoteException, MXException
Add all the fields to be skipped during the object cloning in the if statement.
Simple and straightforward as long as you know it…
The Database Configuration Application has been enhanced in Maximo 126.96.36.199 with a new object definition menu called ‘Exclude Attribute Data’. Here you can specify the attributes that you do not want included in your new object during the duplication process. You can also control what records are excluded using an SQL condition.