Solved
Change revision by code
Hi.
How can i change WTPart revision by code?
I need something lika that:
from A.* to B.1;
from B.* to C.1;
from C.* to D.1
and so on.
* - any number.
Thanks.
Hi.
How can i change WTPart revision by code?
I need something lika that:
from A.* to B.1;
from B.* to C.1;
from C.* to D.1
and so on.
* - any number.
Thanks.
Following code works on 9.1 M40
Versioned reviseObj(final Versioned versioned){
Versioned newVersioned = null;
try {
newVersioned = wt.vc.VersionControlHelper.service.newVersion(versioned);
wt.fc.PersistenceHelper.manager.store(newVersioned);
} catch (WTPropertyVetoException e) {
e.printStackTrace();
} catch (WTException e) {
e.printStackTrace();
}
return newVersioned;
}
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.