Jump to content
Changes to the Jaspersoft community edition download ×

toUppercase() functionality for the fields


rajuchacha007

Recommended Posts

Hello experts,

 

I have been generating reports and executing them within a java file. I am using Group Header to group the data for particular criteria. Now, if I want to diplay this data in Uppercase or in lowercase what hould I do? Right now my approach is to use print when expression.

for e.g. for a particular field, in the print when expression property, I am writing

first i tried

$F{description}.toUpperCase()

Later I tried

$F{description}.toUpperCase()==true

It compiles well  without any error but it does not show the desired out put. It shows completely blank. I think it's due to this expression, it's checking whether or not this field is uppercase only. This is where i am committing mistake. How to get this field converted in uppercase?  Should I declare boolean? Thanks in advance.

Best regards.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Forget about the print when expressin, it is used to condition the visibility of the textfield.

You just need to modify the expression of the textfield (which is what is displayed in the textfield itself).

What you did in terms of expression was correct:

$F{my_field}.toUpperCase()

This will print the value of my_field in upper case.

Giulio

Link to comment
Share on other sites

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