Jump to content
Changes to the Jaspersoft community edition download ×

Split text field expression


ag201

Recommended Posts

guys,

 

i have a textfield which is displaying the value of a variable. this variable contains for example,

(text1='hello') AND (text2='world')

 

now i need to only display the values. i mean i need to display hello,world. so i have put a text field expression, $P{fstring}.split("-")[1] which picks up hello and i have $P{fstring}.split("-")[2] which picks up world separately.

 

i need to somehow put them together so that it picks up both at the same time and displays just the values separated by commas in one text field.

 

can somebody guide me in this. thanks.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...