Jump to content
We've recently updated our Privacy Statement, available here ×

simple concatination routine for a field


law

Recommended Posts

Hi all, I'm attempting to do this simple concatination routine in the iReport that results in errors on build. In "Variable Experssion" I have this: 

$V{likesStr}+=$F{likes}+","

Basically, I want to build a coma separated string of field $F{likes}, then later create an array out of it. I tried criating an array on the fly, directly, but couldn't get it populated correctly, the array was retaining only the very last value out of a set of values. I'm hoping to get my array out of the string I'm attaempting to build. 

The compiler error is: '(java.lang.String) variable_likesStr.getValue()', is a bad expression as the left hand side of an assignment operator

Any deailed suggestions will be much appreciated.

 

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...