Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hello.
We have an object wt.change2.WTChangeOrder2
Please tell me how to get its objects that are in the ReleaseNotice?
Solved! Go to Solution.
ChangeHelper2.service.getChangeablesAfter(wtchangeorder2)
There are more useful methods in this server. Look at the Windchill API JavaDoc.
I searched help docs for "ReleaseNotice", could not find it. Looks that like that is a ChangeNotice unless someone at site renamed it to say ReleaseNotice. Icon is certainly a change notice icon.
ChangeHelper2.service.getChangeablesAfter(wtchangeorder2)
There are more useful methods in this server. Look at the Windchill API JavaDoc.
I searched help docs for "ReleaseNotice", could not find it. Looks that like that is a ChangeNotice unless someone at site renamed it to say ReleaseNotice. Icon is certainly a change notice icon.
public static java.util.ArrayList<wt.part.WTPart> getWTPartFromChangeOrder(wt.change2.WTChangeOrder2 wtChangeOrder2, String possibleStates) throws wt.util.WTException {
java.util.ArrayList<wt.part.WTPart> wtParts = new java.util.ArrayList<>();
wt.fc.QueryResult queryResult = wt.change2.ChangeHelper2.service.getChangeablesBefore(wtChangeOrder2);
while (queryResult.hasMoreElements()) {
Object obj = queryResult.nextElement();
String objType = obj.getClass().getName();
if ("wt.part.WTPart".equals(objType)) {
wt.part.WTPart part = (wt.part.WTPart) obj;
if (possibleStates.contains(part.getState().toString())) {
wtParts.add(part);
}
}
}
return wtParts;
}