Skip to main content
1-Visitor
October 23, 2012
Question

Retrieving a standard attribute value Windchill 10.1

  • October 23, 2012
  • 20 replies
  • 9488 views

I want to retrieve a Standard Attribute value created over promotion request thorugh code. can some one help with this?

20 replies

1-Visitor
January 14, 2013

Hi Sumit,

I am actually working on the same thing. Have you gotten any further since posting? I found this discussion which may be of some help if you haven't yet gotten it: http://communities.ptc.com/message/182669

1-Visitor
January 28, 2013

What attribute are you looking for specifically? Is it an IBA? Are you doing this in a workflow?

1-Visitor
January 28, 2013

I'm not sure about Sumit, but I'm looking for the "description" for the promotion request. Yes, I'm looking to do this in a workflow. I'm afraid I don't know what IBA stands for . Also, I'm looking to add the names of the collected objects of the promotion request in the Approval Notification email - do you know if this is possible? I should note that I'm running 9.1, not 10.1 as Sumit is.

GregoryPERASSO
16-Pearl
January 29, 2013

If it is in the Promotion Notice workflow , you can just put

String desc = ((wt.maturityPromotionNotice)PrimaryBusinessObject).getDescription()

primarryBusinessObject is the object who"lived" in the worklfow, and Description is a standard attribute, not an IBA, so you can directly access to it by a get method