Jump to content

Pass a date range variable from main report to sub report


rtucci

Recommended Posts

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

 

Thanks

RT

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 date

Kpant

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