on-internet
← Community

How to use Case statement in report?

Stack Overflow ·

Can anyone let me know how to write a CASE STATEMENT like in SQL but in a Jaspersoft 6 report? More precisely inside the expression editor. For example: CASE ProductLine WHEN 'R' THEN 'Road' WHEN 'M' THEN 'Mountain' WHEN 'T' THEN 'Touring' WHEN 'S' THEN 'Other sale items' ELSE 'Not for sale' END

Comments

Sign in or sign up to comment and upvote.

No comments yet.