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

Re: How to search EPMDocument in folder or container using WC APIs

$
0
0

 

QuerySpec qss = new QuerySpec(EPMDocument.class);

 

EPMDocument doc = null;

 

 

QueryResult qrr = PersistenceHelper.

manager.find((StatementSpec)qss);

while(qrr.hasMoreElements())

 

{

 

doc = (EPMDocument)qrr.nextElement();

String path = doc.getFolderPath();

 

if(doc.getContainerName().equalsIgnoreCase("<your container name>")==true&& path.substring(0,path.lastIndexOf("/")).equalsIgnoreCase("<folder name>")==true)

{

 

//System.out.println(doc.getContainerName());
 

<your code >

//System.out.println();

}

}

 

 

Message was edited by: kaushik das


Viewing all articles
Browse latest Browse all 8876

Trending Articles



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