Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
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
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
Take a look at this article
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.
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
but it will show all parts
com.ptc.windchill.esi.tgt.ESITargetUtility.getTargetAssociations(Persistable object)
