tmagalhaes Posted January 22, 2010 Share Posted January 22, 2010 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now