Can Enumeration values be changed based on condition

0
I have Enum variable which has values a,b,c. Based on certain condition i have to set value 'b' to the enum variable. Is it possible with enumeration? If so, what should I mention in change object?
asked
1 answers
0

You can use expressions to determine which value you whish to set. Here is an example:

 

if($Dag='1')then Dossiers.Enum_A
else if($Dag='2')then Dossiers.Enum_B
else if($Dag='3')then Dossiers.Enum_C
else if($Dag='31')then Dossiers.Enum_D
else empty

 

answered