cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We’re aware that the eSupport site is currently down, preventing community login. Our team is actively working on a fix and we’ll share updates as soon as possible.

Translate the entire conversation x

QuerySpec joining both WTPart and WTPartMaster

VM_13704617
6-Contributor

QuerySpec joining both WTPart and WTPartMaster

I need to find a WTPart/WTPartMaster that matches to specific partNumber, partRevision, View and Organization I provide. How can this be achieved by QuerySpec? Or is there any alternative?

3 REPLIES 3

If you have a reference to the WTPart or WTPartMaster, you can use the VersionControlHelper service to get all versions then loop through those. A simple Queryspec would only need to get a part by number. 

HelesicPetr
22-Sapphire II
(To:VM_13704617)

Hi @VM_13704617 

I usually use joins to link the tables together and then I put the input criteria

 

here is an example how to use joins in the QuerySpec

Query spec for multiple objects

 

In your case you have to join following tables, WTPart, WTPartMaster, ViewReference, 

PetrH

Hi @VM_13704617,

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution or please feel free to detail in a reply what has helped you and mark it as the Accepted Solution. It will help other members who may have the same question.


Of course, if you have more to share on your issue, please pursue the conversation.

Thanks,


Catalina
PTC Community Moderator
PTC
Announcements
Top Tags