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.
@Override
protected boolean skipCopyField(MboValueInfo mvi) throws RemoteException, MXException
{
if(mvi.getName().equals("MYCUSTOMFIELD"))
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 7.5.0.3 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.
Source:http://maximodev.blogspot.com/2012/06/skip-field-copy-object-duplicate.html
Tidak ada komentar:
Posting Komentar