Carm Posted October 5, 2020 Share Posted October 5, 2020 Hello all,So I have a report and a subreport. The subreport is feeding a variable on the main report called "MainTesting", in turn this same variable is being used in the following boolean expression in a textfield: "($V{MainTesting}!=null ?"Ready" :"Pending"). Now I need to use the result of this field (boolean expression) in another variable but I couldn't find the way how to refernce this field in the new variable and also what evaluation time should I use? CCan someone please help.Thank you in advance for your help and preciouse time, really apprecaited. Link to comment Share on other sites More sharing options...
mlopez_1 Posted October 6, 2020 Share Posted October 6, 2020 You can create another String variable for storing $V{MainTesting}!=null ?"Ready" :"Pending" expression, so you can access this variable.The evaluation time depends on what you want to do with those variables.Mariano Link to comment Share on other sites More sharing options...
Carm Posted October 11, 2020 Author Share Posted October 11, 2020 Hi Mariano,Thank you for your prompt reply and sorry for the delay in my answering. I had already tried your suggestion but when I use another variable, the answer is always Pending that is, it's as if all entries are null. Don't know if this is happening due to the fact that the original variable "MainTesting" is being populated from a subreport. The only way I could make it work is to put $V{MainTesting}!=null ?"Ready" :"Pending" in a text field evalutaion time "Band" but then the problme is to use that field in another variable. Thank you once again for your help. 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