Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! 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