Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: FolderHelper.assignFolderByReference

$
0
0

Wasim

Here to go

 

publicstaticvoid myCustomMover(String docNumber)

       {

              try {

                     WTDocument doc=getWTDoc(docNumber);

                     WTContainer cont=doc.getContainer();//you give different container also

                     WTContainerRef containerRef = WTContainerRef.newWTContainerRef(cont);

                     String location="MyFolder//Documents/";

                     Folder folder = FolderHelper.service.getFolder("/Default/"+location, containerRef);

                     WTValuedHashMap map = new WTValuedHashMap();

                     map.put(doc,folder);

                     ContainerMoveHelper.service.moveAllVersions(map);                          

              }

              catch (WTException e) {

                     e.printStackTrace();

              }                   

       }

 

 

Thanks & Regards

Manikandan


Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>