jasper_quest Posted August 8, 2018 Share Posted August 8, 2018 Hello everybody,I have defined a variable within a dataset of a list. I tried this via "Return Values" with the global variable of the main dataset.Unfortunately, the inner value from the list variable is not passed to the global variable.I need the value to tell certain sections by the "print-when-expression" that they should not be printed if the value of the list is 0.But I always get the value 0 for the global variable.Can anyone help me please?Thanks a lot. Link to comment Share on other sites More sharing options...
jasper_quest Posted August 8, 2018 Author Share Posted August 8, 2018 These are the two variables:Variable1:variable name = "content_global"class = "java.lang.Integer"calculation = no calculation functioninitial value expression = 0increment type = nonereset type = report Variable2name = "content"value class name = java.lang.Integercalculation = countexpression = $V{content}+1initial value expression = 0increment type = nonereset type = report I defined at the "return values", that the return value of this dataset run should be overgiven to the content_global.From Variable: contentTo Variable: content_globalcalculation Type = no calculation function Link to comment Share on other sites More sharing options...
jasper_quest Posted August 8, 2018 Author Share Posted August 8, 2018 Ok, I went over it again. The global variable receives the value, but only at the end of the window. I would need the value but already at the beginning of the window. Is this possible at all?Thank you. 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