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
Here is my issue: There is a feature that is able to discard a part. But I don't want to discard the part when it is "Resulting Objects" in some ChangeOrder or ChangeRequest.
I've tried to get the part's related changeorder, but when the part was being revised in ChangeActivity, I can't get the related changeorder with the part number because its version has been changed.
Is there a solution can handle this problem?
Solved! Go to Solution.
If look table ChangeRecord2, the reference to WTPart is iteration - then cannot get the part if it is revised as new part iteration/version will be created.
Cliff
If look table ChangeRecord2, the reference to WTPart is iteration - then cannot get the part if it is revised as new part iteration/version will be created.
Cliff
This problem I just solved by Iterating all iteration of the part. But there is another problem: If I add a WTPart "abc Part" to "Resulting Objects" when editing Change Task, I can still discard the "abc Part". How can I get the relationship between "abc Part" and eca or ecn?
ChangeHelper2.service.getAffectingChangeActivities(p);
It seems this can do it