on 11-01-2016 7:55 PM
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?
Have you tried linking the 3 statements with OR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.