Skip to Content
0

characteristic set via dependency getting reset on vendor master

Nov 01, 2016 at 07:55 PM

68

avatar image

I have 3 characteristics on a vendor master that have values of "Y" or "N". I have another characteristic that I want to use to count how many of those 3 are "Y", and last a characteristic that I want set to "Y" if any of the original 3 are "Y".

Each of the 3 original chars is linked to a Procedure type dependency that has logic as below.

$SELF.counter = 0,

$SELF.counter = counter + 1 if Char_A = "Y",

$SELF.counter = counter + 1 if Char_B = "Y",

$SELF.counter = counter + 1 if Char_C = "Y",

$SELF.Any_Y = "N" if counter = 0,

$SELF.Any_Y = "Y" if counter > 0.

The counter and Any_Y both change correctly when I adjust the value of Char_A, B & C. There's no way to save the value of the char except by going back to the vendor master and saving. When I do that and come back to the characteristics, the counter and Any_Y have both changed from when I was in a second ago, and they appear to only see the Char_A. If Char_B or Char_C is set to "Y", and I go out and come back in, the other 2 values reset as if B & C are both "N".

Char_A, Char_B, Char_C are identical except for the name and description. They all have the same dependency procedure assigned to them.

Can anyone tell me what I am missing?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ajit Kumar Nov 02, 2016 at 09:59 AM
0

Have you tried linking the 3 statements with OR

Share
10 |10000 characters needed characters left characters exceeded