Start a topic
With the exception of Windchill, The PTC Community is on read-only status until April 6 in preparation for moving our community to a new platform. Learn more here
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community is on temporary read only status in preparation for moving our community to a new platform. Learn more here

Translate the entire conversation x

How to get "Global Enumeration Used" in the "Constraints" tab of a Classification Attribute

Manoj_Dokku4
14-Alexandrite

How to get "Global Enumeration Used" in the "Constraints" tab of a Classification Attribute

I have a classification attribute named Colour with internal name COLOR,

in the Constraints tab, I have assigned global enumeration which is having internal name Colour(COLOR_ABC).

 

Is there any api available such that when I give an input of Classification Attribute internal name (COLOR), my output should fetch the global enumeration used COLOR_ABC.

 

Manoj_Dokku4_1-1757668579589.png

 

@HelesicPetr 

 

3 REPLIES 3

If I do understand you correctly, you want the display value of the selected enumeration. This is found e.g. in the support case:
https://www.ptc.com/en/support/article/CS204076

Important is, that you always need to load the classification link attribute together with the needed attribute.

@BjoernRueegg , thanks for the reply.

This will work If you have a persistable object, but in my scenario, I know only the Internal Name of the classification attribute used, need to get the Internal Name of External Global enumeration used in the Constraint.

MTH
13-Aquamarine
13-Aquamarine
(To:Manoj_Dokku4)

You need to check for the constraints of the attributes then filter on the constraint of type global enumeration

Announcements


Top Tags