Jump to content

Recommended Posts

Posted

My report has 6 different sections.  Each section is in a separate detail band of the Main report.  I want to give the user a multi-select input control that lists the 6 sections, and lets the user select which of the 6 sections is displayed.  Thus the input control is collection.  Let's call this $P{DisplayOption}.

For each section (detail band) I want to use the Print When Expression, and java to determine if among the selections made by the user, one of the selections is this section, and then display that section.

$P{DisplayOption}.contains("section1").

[This was initially a question, but I figured out the answer before anyone read the question, so I have changed this from a question to a statement of what works.  I don't know how to delete a question.]

 

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

This is when you can use Subreports.
Rather than displaying it in the main report, you can create 6 different reports and call them into the main report using subreport feature. Subreports could be given print when expression and you can let the user decide which report to view using an input control.

Regards,

KKriplani

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