cancel
Showing results for 
Search instead for 
Did you mean: 

Using a precondition strict to a specified Class

Former Member
0 Kudos

Dear All:

               Now I have a class X , the class has two characteristics A and B ,  A has values a1 and a2 , B has values b1 and b2 . In the configration , when I choose a1 for A then b2 cannot be chosen . To fulfill that I can creat a precondition dependency “  A <> 'A1'  ” and assign it to the value b2 in ct04. But by doing this all configuration  materials have characteristics A and B with other classes(not X)would be effected.

               The question is how I can fulfill this purpose strict to the class X but not other classes?

               PS:I donnot want to use overwritten in class.

Any help would be appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184627
Active Contributor
0 Kudos

Hi Xiaojie,

You can use a procedure & assign to the configuration profile

$SELF.B = 'b2' IF $SELF.A <> 'A1'

Regards,

Senthilkumar SD    

Former Member
0 Kudos

thx for the replay

but I donnot want B is chosen automaticlly when A is not chosen a1.

There is another way?

former_member184627
Active Contributor
0 Kudos

Hi Xiaojie,

Looks like you may have more values for B... Eg: B1, B2, B3, B4

$SELF.B IN ('B2','B3','B4)' IF $SELF.A <> 'A1'


So B can have a value other than B1.

Regards,

Senthilkumar SD

Former Member
0 Kudos

Hi Senthilkumar:


This is really a good solution.


Actually there are more values in our business, which means the dependency is quite redundant.


If there is a optimized alternative solution?


Thank you very much for you help!

former_member184627
Active Contributor
0 Kudos

Hi Xiaojie,

Another solution would be to use a VC table. In the table, we need to upload the possible combinations for both the characteristics.

Then, use a constraint to validate the entries made during configuration, with that of the values maintained in the table.

Regards,

Senthilkumar SD

Former Member
0 Kudos

Hi Senthilkumar

that is excellent !

Answers (0)