Hi ,
How to get related resulting change notices from parts. Please provide the syntax@
RelatedChangesQueryCommands.getRelatedAffectingChangeNotices((Changeable2)wtPart);
Regards,
Kaushik
Hi Basha Shaik
You can try below API:
QueryResult affected = com.ptc.windchill.enterprise.change2.commands.RelatedChangesQueryCommands.getRelatedAffectingChangeNotices((Changeable2)prt);
WTCollection resulting = com.ptc.windchill.enterprise.change2.commands.RelatedChangesQueryCommands.getRelatedResultingChangeNotices((Changeable2)prt);
I hope this helps you.
Regards,
Shirish
Hi Shirish,
To query Related Resulting Change Notices am using getRelatedResultingChangeNotices((Changeable2)prt ) method and it working for me
Thanks for your Support.
Thanks,
Shaik Basha
Hi I am trying to get ChangeNotice from WTPart and getting Empty Collection please help me.
WTCollection changeNotice1 = (WTCollection)RelatedChangesQueryCommands.getRelatedResultingChangeNotices((Changeable2)prt);
logger.debug("changeNotice1 size :"+changeNotice1.size());
while(iterator.hasNext())
{
ObjectReference objectReference = (ObjectReference) iterator.next();
WTChangeOrder2 wtCN = (WTChangeOrder2) objectReference.getObject();
}