Skip to main content
9-Granite
January 16, 2023
Solved

How to get the related WTChangeOder of WTPart.

  • January 16, 2023
  • 1 reply
  • 1723 views

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?

Best answer by Cliff_17466

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

1 reply

7-Bedrock
January 16, 2023

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

guide_me9-GraniteAuthor
9-Granite
January 16, 2023

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?