cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the previous version of the latest version for a object.

Highlighted
Newbie

How to get the previous version of the latest version for a object.

Such as part ...Which API can do it ? thx !
3 REPLIES 3
Highlighted

How to get the previous version of the latest version for a object.

wt.vc.VersionControlHelper.service.. see java doc for it.


Highlighted

RE: How to get the previous version of the latest version for a object.

OldVersionWTPart = (WTPart) VersionControlHelper.service.predecessorOf(WTPart);



In Reply to Owen Xiang:
Such as part ...Which API can do it ? thx !
Highlighted

RE: How to get the previous version of the latest version for a object.

QueryResult qr = VersionControlHelper.service.allVersionsFrom(part);
if (qr.hasMoreElements()) WTPart previousVersion = (WTPart)qr.nextElement();

VersionControlHelper.service.predcessorOf(part) will give you previous iteration but not version.






In Reply to Owen Xiang:
Such as part ...Which API can do it ? thx !




e-mail: -
ICQ: 395141602
Phone: +79219232334
Announcements