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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

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

@_1647
13-Aquamarine

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

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 2
HelesicPetr
22-Sapphire I
(To:@_1647)

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

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
 

Announcements

Top Tags