Skip to main content
16-Pearl
September 17, 2015
Question

conditional constraint issue

  • September 17, 2015
  • 1 reply
  • 2091 views

hi all,

how to write conditional constraint to achieve as follow

Two attributes:

ATTRIBUTE_1 (CAR_BRAND) & ATTRIBUTE_2 (MODEL).

Value of ATTRIBUTE_1 could be:

- VALUE_1 (BMW) or VALUE_2 (AUDI)

Value of ATTRIBUTE_2 can be:

- VALUE_11 (X5) or VALUE_12 (X6)

if VALUE_1 (BMW) was selected

or

- VALUE_21 (A4) or VALUE_22 (A6)

if VALUE_2 (AUDI)was selected

how to do it in PDMLink??

THX

1 reply

16-Pearl
September 18, 2015

In 10.x there is a way to achieve this but of course ATTRIBUTE_2 will not be a dynamically updated drop down. It will remain as a text box but will have the required validation. Refer following:

1.  Create ATTRIBUTE_1 with enumerated values as Audi, BMW.

2. Create ATTRIBUTE_2  with two enumerations as (BMW_v1, BMW_v2) and (Audi_v1, Audi_v2)

3. Create constraints on each as shown in the following image:

18-09-2015 20-29-36.gif

This is how it works:

18-09-2015 20-32-45.gif

Feel free to add your findings and do let me know if this helps.

Regards,

Bhushan

Gucio16-PearlAuthor
16-Pearl
September 21, 2015

The main purpose of my issue was to find any way to achieve situations when second attribute is chosen from the list.

But thank for your answer.

Regards,

Krzysztof

16-Pearl
September 29, 2015

Hi Krzysztof,

You can also refer to the following screen shot with the additional legacy constraint added on the second attribute as mentioned in the previsions comment. Please let me know if that helps.

Regards,

Bhushan

29-09-2015 19-42-23.gif