Hi Mani,
The error got resolved as
the reason was:
In Windchill 9.1, the class ContainerMoveHelper.class is located in codebase\wt\dataops\containermove
In Windchill 10.1, it is in codebase\WEB-INF\lib\wncWeb.jar
I added codebase\WEB-INF\lib\wncWeb.jar in classpath for the project in Eclipse and it resolved the above mentioned error.
However, now I have issues with WTContainerRef containerRef = WTContainerRef.newWTContainerRef(cont);
On hover, it says: "The type com.ptc.windchill.annotations.metadata.ColumnType cannot be resolved. It is indirectly referenced from required .class files"
I even tried to modify the method with another method:
public static PDMLinkProduct getMyProduct(String ContainerName) throws WTException {
PDMLinkProduct product = null;
QuerySpec qs = new QuerySpec(PDMLinkProduct.class);
SearchCondition sc = new SearchCondition(PDMLinkProduct.class, PDMLinkProduct.NAME, SearchCondition.EQUAL, ContainerName);
qs.appendSearchCondition(sc);
QueryResult qr = PersistenceHelper.manager.find(qs);
if(qr.hasMoreElements())
product = (PDMLinkProduct) qr.nextElement();
return product;
}
But it says appendSearchCondition is deprecated.
Any more help please.
Thanks,
Wasim