on 02-23-2009 1:51 PM
Hi,
can you help?
I need change value in characteristic by dependieces.
For example:
user select value BLUE for characteristic COLOR. For another characeteistic (MODEL) i select value STANDARD. For this value in characteristic COLOR should be select different color RED, but i still have value BLUE.
How should be prepare procedure for this change?
Regards
Seba
OK, now I am confused, you are setting the value, then defaulting the value ?
If you just want to set the default to red based on Model = Standard,
$set_default($self, COLOR,'RED') if MODEL = 'STANDARD'
Then have a corresponding
$DEL_DEFAULT(($self, COLOR,'RED') if MODEL <> 'STANDARD'
in the line after that.
Same thing for BLUE, ORANGE, PINK, etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have anything else setting a "default" value for Color ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No - COLOR don't have default value (in definition characteristic).
Belowe code form procedure:
$self.COLOR = 'RED' if MODEL = 'STANDRD',
$set_default($self, COLOR,'RED') if MODEL = 'STANDARD'
Result in transaction CU50: system try change value for COLOR but exitst two value:
BLUE - set by user and
RED - set by procedure
and i've must remove first value BLUE manualy. After is system executed procedure correctly.
Regards
Seba
Use a Procedure.
$self.Color = "RED" IF Model = "STANDARD"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.