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

Re: Get EPMDocument connected with WTPart via JSP

$
0
0

Hi Michael,

 

I think you are talking about an association link. Here are some queries for the connections:

 

 

  • WTPart, EPMDocuments having an association link:

SELECT pm.name WTPartName, pm.wtpartnumber, em.cadname EPMDocName, em.documentnumber EPMDocNumber
          FROM WTPart p, WTPartMaster pm, EPMDocument e, EPMDocumentMaster em, EPMBuildhistory ebh

WHERE e.ida3masterreference=em.ida2a2 AND p.ida3masterreference=pm.ida2a2 AND ebh.ida3a5=e.ida2a2 AND ebh.ida3b5=p.ida2a2; 

 

  • EPMDocuments not associated to WTParts:

          SELECT em.cadname, e.ida2a2

FROM EPMDocument e, EPMDocumentMaster em

WHERE e.ida2a2 NOT IN (SELECT ida3a5 FROM EPMBuildhistory) AND e.ida3MasterReference=em.ida2a2;

Not really sure what your specific use case is so it is difficult to understand what exactly would be the best way to achieve it.

Typically parts are associated via auto associate. Is there a reason this isn't working for you?

 

Thanks,

Jarrett


Viewing all articles
Browse latest Browse all 8876

Trending Articles



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