Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Hi,
I am writing a java class that I can insert in the workflow using NetBeans.
When I am building a query for an EPMDocument given the number I see that the function appendSearchCondition is crossed out, meaning it is deprecated. Is there an other way of doing thequery that is not deprecated?
Sample :
--------------
Class cname = EPMDocument.class;
QuerySpec queryspec = new wt.query.QuerySpec(cname);
queryspec.setAdvancedQueryEnabled(true);
SearchCondition modeltypesc = new SearchCondition(EPMDocument.class, "master>docType", "=", EPMDocumentType.toEPMDocumentType("CADPART"));
queryspec.appendWhere(modeltypesc, new int[] { 0 });
queryspec.appendAnd();
queryspec.appendSearchCondition(new SearchCondition(cname, "master>number", "=", CurrNmbr));
Patrick,
Thanks for the answer. I do have although still one deprecated to go, the query function itself :
QueryResult queryresult = PersistenceHelper.manager.
Hello Dave,
Thanks for the reply. I am just starting in this Java programming for Windchill. Besides the Rational Rose and the Java doc what referenced do I still need to find back the info that you just explained about the casting.
Best regards,
Bernard