Jump to content
We've recently updated our Privacy Statement, available here ×

Displaying Check Box


pradiptab

Recommended Posts

Hello Friends,

I am using iReport 3.7.1. Is there any option to show a field as a check box or as a checkbox group ?

As a newbie I might missing some thing to achieve this. Please help.

Thanks,

Pradipta



Post Edited by pradiptab at 04/18/2011 11:47 AM
Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Thanks Pato. This works fine. And Yes I am printing to pdf format.

But still I am wondering if there is any inbuilt way to implement check boxes for a group of dynamic items inside iReport.

 

Thanks,

Pradipta



Post Edited by pradiptab at 04/19/2011 11:53 AM
Link to comment
Share on other sites

Hi Valluri

- Place these two images in your report directory.

- Place an Image field from the pallette.

- In the "Image expression" property of that field use this sample code.

(${field_name}.intValue() == 1 ? "path\\to\\your\\image\\showing\\check.jpg" : "path\\to\\your\\image\\showing\\uncheck.jpg")

Where "field_name" is a Number type field in my case.

 

Hope this will help.

 

Thanks,

Pradipta

Link to comment
Share on other sites

  • 9 years later...

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