split string

0
By: Max - wico
split string
2005-03-11 05:05
Hi

I have a database field looking like this: "blue;white;green" and I want to split this into three fields in ireports. How can I do that?




By: Max - wico
RE: split string
2005-03-12 01:15
I presume I can use the String.split method but I don't know how to use it with iReport.
2005 IR Help's picture
Joined: Aug 9 2006 - 3:40am
Last seen: 13 years 1 month ago

1 Answer:

2
split method worked for me in iReports.

$F{Field}.split("/")[0]
$F{Field}.split("/")[1]
ashruti's picture
22
Joined: Feb 8 2007 - 2:55pm
Last seen: 12 years 7 months ago
Feedback
randomness