Hi:
I want to have a text field expression like
"if ($V{cars}.equals(new String("BLACK")))
$V{carName}
else if ($V{cars}.equals(new String("RED")))
$V{carMake}"
You can one conditional expression but how can you have multiple conditional expressions for a text field expression.
Thanks,
Sulalith
I want to have a text field expression like
"if ($V{cars}.equals(new String("BLACK")))
$V{carName}
else if ($V{cars}.equals(new String("RED")))
$V{carMake}"
You can one conditional expression but how can you have multiple conditional expressions for a text field expression.
Thanks,
Sulalith
4 Answers:
Posted on July 27, 2007 at 7:14am
Or make three textfiels on the same place and for the first textfield the print when expression:
new Boolean($V{cars}.stringValue == new String("BLACK"))
for the second texftield print when:
new Boolean($V{cars}.stringValue == new String("RED"))
.....
But codyjasperforge his solution is nicer I think :)
mine is easier to understand (I think?)
Post edited by: giroe, at: 2007/07/27 07:15
new Boolean($V{cars}.stringValue == new String("BLACK"))
for the second texftield print when:
new Boolean($V{cars}.stringValue == new String("RED"))
.....
But codyjasperforge his solution is nicer I think :)
mine is easier to understand (I think?)
Post edited by: giroe, at: 2007/07/27 07:15