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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Variance Objects

jlittle
7-Bedrock

Variance Objects

Trying to make the connection to a Variance and its changeables. Here is what I have:


wt.fc.QueryResult queryresult = wt.change2.ChangeHelper2.service.getChangeables( (wt.change2.WTVariance) primaryBusinessObject, false);
while (queryresult.hasMoreElements())
{
wt.fc.WTObject obj = (wt.fc.WTObject) queryresult.nextElement();


obj is returned as an object like: wt.change2.ReportedAgainst:580667336



I am stuck trying to now get the changeable so I can determine the type and get the details of this changeable. Can someone help me make this association please.



Thanks,


James Little


Windchill 10.0 M040

1 REPLY 1

Jim,


You can get access to the changeable as follows:




wt.fc.QueryResult queryresult = wt.change2.ChangeHelper2.service.getChangeables( (wt.change2.WTVariance) primaryBusinessObject, false);


(queryresult.hasMoreElements())



if wt.part.WTPart)

System.


}


out else (changeable instanceof

{


}



Hope this helps.


System. out else



Ravi Dharmalingam
ProductSpace Solutions Inc.




Announcements


Top Tags