Jump to content

Detect sub-report end from the scriptlet


tmagalhaes

Recommended Posts

We have a bunch of reports with subreports.

In the parameter list we are also passing $P{REPORT_SCRIPTLET} as a parameter named REPORT_SCRIPTLET because we want the asme instance of the scriptlet to be used by both the report and subreport.
This part is working fine, but we encountered a problem.

When setData is called on the scriptlet the first time, the variable/field/parameter maps are set to those of the main report.
And also, every time the subreport is ran, setData is called to set those maps to the subreport maps.

The problem is that when a subreport returns back to the main report, the maps are not restored to the main report ones.
We could code around this if there was any way for a scriptlet to detect that the report finished running.

Is there a good way to do this that does not involve adding items to the summary band that evaluate scriptlet methods?
 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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