Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hi,
I have a current wt.epm.document object in wt.maturity.PromotionNotice.
Don't you know, how can I get the link to previous revision (to be exact, the latest iteration of previous revision)?
I'd like to compare this two versions via custom class but I have no idea how to get the previous version.
We are using Windchill 9.1.
Solved! Go to Solution.
wt.fc.QueryResult qrPreviousVersions = wt.vc.VersionControlHelper.service.allVersionsOf(epmMasterCurrentVersion);
Will return ordered list of latest iterations of all revisions, from most recent one to the first one (eg. E.8; D.5; C.2; B.1; A.7).
I've found some related stuff here:
http://communities.ptc.com/message/236558
http://communities.ptc.com/thread/53151
I hope I'll be able to use it.
wt.fc.QueryResult qrPreviousVersions = wt.vc.VersionControlHelper.service.allVersionsOf(epmMasterCurrentVersion);
Will return ordered list of latest iterations of all revisions, from most recent one to the first one (eg. E.8; D.5; C.2; B.1; A.7).