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

Hi,

Try this may be it'll help

 

QuerySpec qss = new QuerySpec(EPMDocument.class);

   EPMDocument doc = null;

   qss.appendWhere(new SearchCondition(EPMDocument.class,EPMDocument.CONTAINER_NAME,SearchCondition.EQUAL,"<your container name>"),new int[] { 0 });

   qss.appendAnd();

   qss.appendWhere(new SearchCondition(EPMDocument.class,EPMDocument.FOLDER_PATH,SearchCondition.EQUAL,"<your folder path>"),new int[] { 0 });

   QueryResult qrr = PersistenceHelper.manager.find((StatementSpec)qss);

   while(qrr.hasMoreElements())

   {

    doc = (EPMDocument)qrr.nextElement();

   }

 

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>