csilva2001 Posted March 13, 2008 Share Posted March 13, 2008 Hi. This is CarloSilva, from Brasil and I want a help. In my report if $F{A} == "this is A" I want report write "carlos alberto" and if $F{A} == "this is B" I want report write "maria jose". If $F{A} != "this is A" and $F{A} != "this is B" then write $F{A}´ value. Is it possible to code that in Expression Variable?Can you help me? An embrace Link to comment Share on other sites More sharing options...
dnvsrikanth Posted March 13, 2008 Share Posted March 13, 2008 Hi csilva2001 Use the expression like this Code:new String($F{A} == "this is A" ? "carlos alberto" : "maria jose" ) Thanks & RegardsDNV Srikanth Link to comment Share on other sites More sharing options...
csilva2001 Posted March 14, 2008 Author Share Posted March 14, 2008 Hi dnvsrikanth. Thanks for response. But dnvsrikanth, my problem is more hard. I need manager three options. See: if $F{A} == "this is A" I want report write "carlos alberto" if $F{A} == "this is B" I want report write "maria jose" If $F{A} != "this is A" and $F{A} != "this is B" then write $F{A}´ value OK? Please, again try help me.An embrace. Link to comment Share on other sites More sharing options...
C-Box Posted March 14, 2008 Share Posted March 14, 2008 just try this one ...Code:$F{A} == "this is A"?"carlos alberto":«»($F{A} == "this is B"?"maria jose":«»(($F{A} != "this is A" && $F{A} != "this is B"«»)?$F{A}:""«»)) just a matter of setting the brackets right! :-) hthC-Box Link to comment Share on other sites More sharing options...
csilva2001 Posted March 15, 2008 Author Share Posted March 15, 2008 Hi dnvsrikanth.Hi C-Box.Perfect!!!!!Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now