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

We are happy to announce the new Windchill Customization board! Learn more.

In a validator or filter, how to get the Parent Part when a child part is selected.

rl-2
1-Newbie

In a validator or filter, how to get the Parent Part when a child part is selected.

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.

1 ACCEPTED SOLUTION

Accepted Solutions
rl-2
1-Newbie
(To:rl-2)

Solution: Type cast UIValidationCriteria to CATUIValidationCriteria and use the method getSelectedParentContextObject() to get the immediate parent of selected part within the tree structure.

View solution in original post

1 REPLY 1
rl-2
1-Newbie
(To:rl-2)

Solution: Type cast UIValidationCriteria to CATUIValidationCriteria and use the method getSelectedParentContextObject() to get the immediate parent of selected part within the tree structure.

Top Tags