fabiano.gabardo.lemos Posted April 12, 2018 Share Posted April 12, 2018 Hello,I need add values on variable of type java.util.list, for exemple: $V{myvariable}.add(%F{myfiled}) sometime like this.Thanks! Link to comment Share on other sites More sharing options...
mlopez_1 Posted April 13, 2018 Share Posted April 13, 2018 Which is the problem? Link to comment Share on other sites More sharing options...
m.kamran Posted April 13, 2018 Share Posted April 13, 2018 Hi fabiano,Please try this solution,https://community.jaspersoft.com/questions/540687/use-array-object-variable-jrxml-fileThanks. Link to comment Share on other sites More sharing options...
fabiano.gabardo.lemos Posted April 13, 2018 Author Share Posted April 13, 2018 Hello,I try but i didn't not undestand, for example, my select return the values on detail band $F{filed1} = value1 - (${my_array}.add($F{filed1}))$F{filed1} = value2 - (${my_array}.add($F{filed1}))$F{filed1} = value3 - (${my_array}.add($F{filed1}))$F{filed1} = value4 - (${my_array}.add($F{filed1}))$F{filed1} = value5 - (${my_array}.add($F{filed1}))And a want add in my variable $V{my_array} this value. Att. Link to comment Share on other sites More sharing options...
m.kamran Posted April 16, 2018 Share Posted April 16, 2018 Hi fabiano,Have you set your variable type to java.util.List?Thanks. Link to comment Share on other sites More sharing options...
fabiano.gabardo.lemos Posted April 17, 2018 Author Share Posted April 17, 2018 Hi, Yes it'is, but doensn't work...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