Skip to main content
1-Visitor
November 21, 2013
Question

Query Attribute of Object Attached to Promotion Request

  • November 21, 2013
  • 13 replies
  • 5031 views

I am looking for a way to query a particular attributes value of an object attached to a promotion request. We are using Windchill 10.0 M040 and will be updating to 10.1 M030 this weekend.


For example, we have a custom boolean attribute (CertificationControlled)attached to the DefaultEPMDocument object type, and we need to know when objects with that value set to 'Yes' are submitted for promotion within a Promotion Request. I can loop through the objects attached to the promotion request object, but I am not sure how to get the attribute value and check to see if it is true or not. Any help will be appreciated.


Thanks,


Benjamin Wilcox – IntelliServ<sup>™</sup>


PPM & PDM Administrator


IntelliServ provides broadband networking and along-string
evaluation services for high-definition downhole and sub-surface operations
> Get the Facts.

13 replies

bwilcox1-VisitorAuthor
1-Visitor
November 22, 2013

I found an error in my code -- had forgotten a close }. Now, though, I get a different error:


D:\ptc\Windchill_10.0\Windchill\temp\WfExpression493019533.java:48: cannot find symbol
location: class wt.workflow.expr.WfExpression493019533
^
Syntax check complete.


Any ideas?


Thanks,


Benjamin Wilcox – IntelliServ<sup>™</sup>


PPM & PDM Administrator


IntelliServ provides broadband networking and along-string
evaluation services for high-definition downhole and sub-surface operations
> Get the Facts.

November 22, 2013

Add complet class path for Persistable and local


com.ptc.core.lwc.server.LWCNormalizedObject obj = new com.ptc.core.lwc.server.LWCNormalizedObject((wt.fc.Persistable) myObject, null, java.util.Locale.ENGLISH, null);



Thanks,


Shreyas

bwilcox1-VisitorAuthor
1-Visitor
November 22, 2013

Thank you. That is what I needed. My code is working very nicely, now. Thank you to all for your help!


Benjamin Wilcox – IntelliServ<sup>™</sup>


PPM & PDM Administrator


IntelliServ provides broadband networking and along-string
evaluation services for high-definition downhole and sub-surface operations
> Get the Facts.