Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
I would like to know how to get the Parent of an Part when a child is selected within a BOM structure. The API WTPartHelper.service.getUsedByWTParts(pm1) will not work as it would return all the Parts and there is no way to identify the immediate Parent.
Solved! Go to Solution.
Solution: Type cast UIValidationCriteria to CATUIValidationCriteria and use the method getSelectedParentContextObject() to get the immediate parent of selected part within the tree structure.
Solution: Type cast UIValidationCriteria to CATUIValidationCriteria and use the method getSelectedParentContextObject() to get the immediate parent of selected part within the tree structure.