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!
I was playing around with Windchill's Java API for building queries and I have figured out how to query based on most of the default fields, for example the Name on a WTPart:
QuerySpec queryspec = new QuerySpec(WTPartMaster.class);
SearchCondition searchcondition = new SearchCondition(WTPartMaster.class, WTPartMaster.NAME, SearchCondition.LIKE, "6208-001-010%");
queryspec.appendWhere(searchcondition, new int[]{0});
QueryResult qr = PersistenceHelper.manager.find((StatementSpec) queryspec);
However, it is not clear to me how I could adapt this to query on custom attributes. Can anyone give me a quick rundown how to look up a custom attribute on an object using this interface?
Thanks for your time!
-Tom
