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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. 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

 

4 REPLIES 4

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

 

Announcements
Top Tags