Jump to content

display plural form of unit(text field) in report


itpragmatic

Recommended Posts

Experts,

In my report I am displaying a unit called work units. Right now this column is displayed as follows

Work Units

0

or

Work Units

1

or

Work Units

2

When Work Units > 1 i want to add a "s" to indicate its plural form. Do i need to put condition clause?

$F{units.processedUnits}.valueof( "" ) ? "" : $F{units.processedUnits}+(s)+

someting like that? How should I achieve this? Please suggest or advise. Thank you.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

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