rtucci Posted May 28, 2013 Share Posted May 28, 2013 I have a survey report that has a variable date range, i am able to extract total number of survey's sent with in a given date range, in my sub report I look at total number responded to, how do i pass the date range from the main report to the sub report ?. ThanksRT Link to comment Share on other sites More sharing options...
Thomas Zimmer Posted May 28, 2013 Share Posted May 28, 2013 define a parameter in your subreport (as type DateRange). in your main report select the subreport element and add the Date-Range value to the parameter list in subreports´ properties.Cheers, Thomashttp://www.thomaszimmer.net Link to comment Share on other sites More sharing options...
kpant Posted May 29, 2013 Share Posted May 29, 2013 Since your date range is your input parameter, you already have it as a PARAMETER ($P{DATE_RANGE})Create a parameter in your sub-report as $P{SUB_DATE_RANGE}Selecet Subreport section, goto parameter mapping in properties panel, add a mapping value which maps $P{DATE_RANGE} to $P{SUB_DATE_RANGE}just make sure both main & subreport date parameters have same data type as dateKpant 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