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

I want to check more than 10 time an if else condition.


udumanajmeer

Recommended Posts

my condition is,

if(name1.equals("personal"))

     first subreport want to view

if(name2.equals("contact")

    second subreport want to view

.

.

.

.

.

if(name13.equals("award"))

     another subreport want to view

   For this scenerio i want to check condition in jasper ireport and i have to pass parameter as a name1,name2......name13. Based on the parameter that subreport only will view in jasper ireport.

Thanks

Uduman

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Simply use the "Print When expression" setting of subreport, that will do it.

Hints: Either you overlay the subreports AND hold their layout small (1px height), or you use a detail band for each subreport where the "Print When expression" is on the band. Otherwise you will propably get problems with offsets with the subreports or even empty pages.

Cheers, Thomas

http://www.thomaszimmer.net

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