cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Translate the entire conversation x

Is it possible to control Enum values displayed on object based on Attribute value on Context?

SL_10932999
12-Amethyst

Is it possible to control Enum values displayed on object based on Attribute value on Context?

I am using Windchill PDMLink Release 13.1 and Datecode with CPS 13.1.0.1

Is it possible to show different list of values for selection for an attribute based on a value of attribute on the context. For example : In context , A attribute called 'Confidential' with Enum of 3 values "Yes, No, Partial'. In Part, I have an attribute called 'Preferred delivery' with Enum value - Electronic, Notification, Paper, Package.

When I create a part, if Confidential=Yes on context, then the list of values for 'Preferred delivery' should only be 'Electronic', 'Notification'. If confidential=No, then then the list of values for Preferred Delivery' should only be 'Notification', 'Paper'. If Confidential=Partial, then the list of values for 'Preferred delivery' should be all enum values.

Is this possible to achieve?
ACCEPTED SOLUTION

Accepted Solutions

I have cross checked the same with PTC & got confirmation that cascading is possible only with attributes on the same object. We cannot create cascading between attribute existing in Container with attributes existing in Part which is available in the container and we do not have any OOTB functionality directly to achieve that. We followed below step to achieve this:
1. Create a attribute A on the Part type & with OIR set the value of the attribute same as value from Container attribute (using custom business algorithm) and make it immutable. Add attribute A to create layout of Part type.

2. Create cascading between attribute A and other attributes needed for cascading.

So, in a way with as per value available in Container attribute, we can control list of values available for selection in Part object.

View solution in original post

3 REPLIES 3
Fadel
23-Emerald I
(To:SL_10932999)

Hi @SL_10932999

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution or please feel free to detail in a reply what has helped you and mark it as the Accepted Solution. It will help other members who may have the same question.

Of course, if you have more to share on your issue, please pursue the conversation.

Thanks,


Catalina
PTC Community Moderator
PTC

I have cross checked the same with PTC & got confirmation that cascading is possible only with attributes on the same object. We cannot create cascading between attribute existing in Container with attributes existing in Part which is available in the container and we do not have any OOTB functionality directly to achieve that. We followed below step to achieve this:
1. Create a attribute A on the Part type & with OIR set the value of the attribute same as value from Container attribute (using custom business algorithm) and make it immutable. Add attribute A to create layout of Part type.

2. Create cascading between attribute A and other attributes needed for cascading.

So, in a way with as per value available in Container attribute, we can control list of values available for selection in Part object.

Announcements
Top Tags