You can use a nested ternary statement to achieve this but it’s messy.
For example:
(i == 1) ? "Send" : ((i == 2)? "Received" : "Cancelled");
More Related Contents:
- How can I display “$£Ω€απ⅔” in Jasperserver PDF using iReport?
- Multiple queries in a single jasper document
- How to sum all values in a column in Jaspersoft iReport Designer?
- Compare current page number with last page number
- Group several same value field into a single cell
- How to pass main report data source to subreport (JasperReports)?
- Stretch a row with data overflow while having multiple rows in a single band
- Jasper Reports Show “Page X of Y” using a single text field
- How to hide textField for specified exporter. For example for not HTML
- Adding table border in jasperreports
- How to remove extra space between textfield in JasperReports?
- What is the difference between variable, parameter and field in JasperReports?
- doing comparison if else in JasperReports
- How to merge cells in same column, apply rowspan?
- How to export to multiple sheets in excel from jasper report
- How do I add a second page in Jaspersoft iReport Designer 4.7
- cvc-complex-type.3.2.2 attribute ‘uuid’ is not allowed to appear in element ‘jasperreport’
- Indentation in generated PDF using JasperReports
- Passing parameters from main report to subreport in Jasper
- How to stretch textfield in a JasperReport as per dynamic content?
- JasperReports: How to pass parameter to subReport
- Grouping records in JasperReports
- How to avoid of missing cell’s border when a record is separated between 2 pages?
- How to pass parameters to query?
- Best and shortest way to evaluate mathematical expressions
- How to fill report using JSON datasource without getting null values?
- Dynamic column cell width
- What happens when I mix signed and unsigned types in C++?
- Overriding grails.views.default.codec=’html’ config back to ‘none’
- Reflection Performance – Create Delegate (Properties C#)