Skip field copy when duplicating object

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
return true;

return super.skipCopyField(mvi);

Add all the fields to be skipped during the object cloning in the if statement.
Simple and straightforward as long as you know it…

TPAE 7.5

The Database Configuration Application has been enhanced in Maximo 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.

Skip field copy when duplicating object

15 thoughts on “Skip field copy when duplicating object

  1. We have installed Maximo Asset Management but do not see the 'Exclude Attribute Data' from Select Action in database configuration. What are we missing?

  2. ‘Exclude Attribute Data" not visible. Have IBM MAXIMO installed but can not see the menu option in database configuration. What is missing?

  3. If you already set the security attribute for allowing access to Exclude Attribute Data, the next you have to do is, add this menu in Database Configuration "Select Action" menu.
    Open CONFIGUR applicaiton (from application designer) and Add/Modify Select Action Menu.
    click New Row, choose element type= OPTION and key value= SKIPATT. set menu position as you like. Save. Now you can see it.

  4. Good article. If you need to execute any more logic while duplication you can use automation scripts. Create an object launch point script and type in below.
    if (mbo.getString("dupflag")=='DUPHEADER'):
    — Any Logic you want —

  5. I didn't find 'dupflag' field for Job Plan.
    Need to write a script on Job Plan , whenever user Go to select action–>Click Duplicate Job plan–>After a job plan is created,he/she must get a message Save your record before making may changes.

    Pls let me know how to achieve this requirement.
    Thanks in advance!!

  6. Have You every found an answer to these ? I need to skip all the Labour Qualification data while duplicating the labour Records in maximo , how to do achieve that ?

  7. Hi, I am able stop coping user defined variable by using Exclude Attribute Data.

    Please let me know if you need any help regarding this.

    Naveen Kumar Madipally

  8. Thanks.. It works.., I wanted to set a field to null only when duplicate but not when creating new record and this code works.
    But my field turns to null only after save but not before save. I wanted to make it null before save.
    I used Add Event and Before Save option but does not work

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top