Windchill 如何更新 IBA 值
public static void UpdatePersistableIBAValue(Persistable persistable, String s, Object value)
throws WTException
{
try{
Locale locale = SessionHelper.getLocale();
PersistableAdapter obj = new PersistableAdapter(persistable, null, locale, new UpdateOperationIdentifier());
obj.load(s);
obj.set(s, value);
obj.apply();
PersistenceHelper.manager.modify(persistable);
}
catch(Exception e){
System.out.println("*******inside UpdateDevaitionIBAValue exception**********");
e.printStackTrace();
throw new WTException(e.getLocalizedMessage());
}
}