Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6219925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:52:09+00:00 2026-05-24T07:52:09+00:00

I have a field ( $P{ORDER}.permit ) which is Integer (0,1) and I’d like

  • 0

I have a field ($P{ORDER}.permit) which is Integer (0,1) and I’d like to display it as a String (“No”, “Yes”). So I added below keys to ResourceBoundle:

order.permit.0=No
order.permit.1=Yes

I wrote expression $R{order.permit.$P{ORDER}.permit} but it doesn’t work. An exception is thrown

net.sf.jasperreports.engine.JRException: Too many groovy classes were
generated. Please make sure that you don’t use Groovy features such as
closures that are not supported by this report compiler.

I suspect that this exception is caused by nesting jasper expressions or nesting them in wrong way.

How should I write the expression to achieve desired result?

EDIT: str("order.permit." + $P{ORDER}.permit) is the answer. Details in the below post.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T07:52:09+00:00Added an answer on May 24, 2026 at 7:52 am

    Use str() instead of $R{}.

    See also http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=54665:

    $R{} and str() are largely the same thing. The functional difference
    is that $R{} can only be used with fixed/static keys, while str() can
    be used with dynamic message keys, e.g. str(“message.prefix.” +
    $P{message}).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an xml code that looks like below: <?xml version=1.0 encoding=UTF-8?> <metadata><fields><field-order/></fields><roles><role name=DEFAULT3_MOD><state
Let's say I have an Order table which has a FirstSalesPersonId field and a
I have a very simple webforms app that will allow field techs to order
I have some problem to order an array by a field of this, here
On Solaris, in order to get the msg_control field in struct msghdr and have
I have a class where FileHelpers is dependent on the field order in this
I have field(time) with data like this: 9:00-11:00 am 7:00-9:00 am 6:30-7:30 pm 1:00-2:30
I have field int displayOrder = 1 in Grails domain object and would like
I have this code below to insert serialized data in a field (order_pictures): $pictures_id
I have an autosuggest feature enabled in search products field of order items section

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.