Change Object type using API
Hi Everyone,
I need help in changing Object type using API.
I want to know if any method exists that can change the object type.
Regards
Sudeep
Hi Everyone,
I need help in changing Object type using API.
I want to know if any method exists that can change the object type.
Regards
Sudeep
Hi Prabhash,
During Migration, there were some parts migrated with wrong type. Hence i needed the API and i found it.
TypeHelper.setType((Persistable)partObj, TypeHelper.getTypeIdentifier("internal_name"));
PersistenceServerHelper.update(partObj);
partObj = (WTPart)PersistenceHelper.manager.refresh(partObj);
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.