Solved
Get programmatically Version History of document
Hello ,
I want to display some data regarding Version History of document (WINDCHILL 11)
version , file name , state , comments ,modified by and last modified

Hello ,
I want to display some data regarding Version History of document (WINDCHILL 11)
version , file name , state , comments ,modified by and last modified

Hi
btw the VersionControlHelper contains an other method that returns all iterations. allIterationsFrom
try
{
WTDocument document = getDocumentByNumber("0000000142");
QueryResult allVersions = VersionControlHelper.service.allIterationsFrom(document);
while (allVersions.hasMoreElements())
{
Object obj = allVersions.nextElement();
if (obj instanceof RevisionControlled)
{
RevisionControlled iterationObject = (RevisionControlled) obj;
System.out.printf("numer> %s - name> %s - version> %s %n", iterationObject.getDisplayIdentifier(), iterationObject.getName(), iterationObject.getIterationDisplayIdentifier());
}
}
} catch (QueryException e)
{
e.printStackTrace();
} catch (WTException e)
{
e.printStackTrace();
}
PetrH
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.