Skip to main content
13-Aquamarine
June 18, 2024
Question

Programmatically how to get change summary details & Release Tragets of objects using CN

  • June 18, 2024
  • 2 replies
  • 812 views

Version: Windchill 12.1

 

Use Case: Requirement 1) Want to fetch change summary details like On Order, Work-in-Process, Finished, etc. Requirement 2) How to get Release Target or Change Transition details for Objects


Description:

I don't know actually how to use :
1) wt.change2.ChangeRecord2 record = (wt.change2.ChangeRecord2)

2) wt.lifecycle.Transition

_1647_0-1718721796787.png_1647_1-1718721826861.png

 

2 replies

HelesicPetr
22-Sapphire II
22-Sapphire II
June 21, 2024

Hi @@_1647 

I would advice to study a link overview how the data are connected together in the change management.

CS63595 - Understanding Change Management objects and their relations

Based on this information you could use ChangeManagemen helper to get all information you need

 

wt.change2.StandardChangeService2
wt.change2.ChangeService2
wt.change2.ChangeHelper2

ChangeHelper2.service.getChangeablesAfter() // objects in a affected table
ChangeHelper2.service.getChangeablesBefore() // objects in a resulting table

 

PetrH

Community Moderator
June 24, 2024

Hi @@_1647,

 

I wanted to follow up with you on your post to see if your question has been answered. 
If so, please mark the appropriate reply as the Accepted Solution. 
Of course, if you have more to share on your issue, please let the Community know so that we can continue to help you. 

 

Thanks,
Anurag