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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Translate the entire conversation x

How to get WTPart from ESITarget

11025060
12-Amethyst

How to get WTPart from ESITarget

WTPart - > Related Objects -> Distribution Table,
if I right click on any row, the object type or the id is com.ptc.windchill.esi.tgt.ESITarget%3A299573938

11025060_0-1769109086646.png

I need to add custom logic to the 'Remove' button, depending on if the part is on any CA or not. 
So, from com.ptc.windchill.esi.tgt.ESITarget%3A299573938
 is there a way to find out which WTPart it is related to?
indirectly, I am looking for a query/api to get WTPart from ESITarget

 

5 REPLIES 5

TDT
16-Pearl
16-Pearl
(To:11025060)

Hi @11025060,

What exactly is your requirement?

I don’t think that’s the right approach, there would be many objects associated with that DT.

Fadel
23-Emerald I
(To:11025060)

The link between DT and parts is com.ptc.windchill.esi.tgt.ESITargetAssignmentLink 

Issue is that many parts may referring to the same DT, some  customer use one DT hence the one DT may reference all parts 

we can define an alias attribute on DT type with mapping target@com.ptc.windchill.esi.tgt.ESITargetAssignmentLink~releasableObject^wt.part.WTPart

Fadel_1-1769156921497.png

 

but it will show all parts 

Fadel_0-1769156835236.png

 

Fede
Imad_A
13-Aquamarine
(To:11025060)

com.ptc.windchill.esi.tgt.ESITargetUtility.getTargetAssociations(Persistable object)

Imad_A_0-1769157524596.png

 

Hello @11025060

 

It looks like you have some responses from some community experts. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution. 
Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.

Announcements
Top Tags