cancel
Showing results for 
Search instead for 
Did you mean: 

possible to use passed params with variable?

Former Member
0 Kudos

I am trying to make a copy of an existing report. The users want to receive this version as a weekly.

Currently, the report is on demand with 'from' and 'to' dates. The problem, is that there is a subreport as well. that is also getting these passed dates.

What I want to do is run this report every monday am for the past 8 days (they want Sat to Sunday data).

I would like to keep the params if that is possible. Otherwise I am not so sure how to pass dates to the sub report.

also on the scheduler would I be able to schedule for the past 8 days.

If not I will have to see how to pass variable dates rather than param dates.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

See this: 

You would need to pass shared variable as a parameter from sub report to main report

For Example follow these instructions:

1.Set the shared variable. A shared variable can be set anywhere in the main report or anywhere in any subreport. To set a shared variable called Age you would use the following code:

Shared NumberVar UserAge;
UserAge := {Table1.Age};
""

2. Display or use the shared variable. A shared variable can be processed or displayed anywhere in the main report or anywhere in any subreport. You would share your Age variable like this:

Shared NumberVar UserAge;
UserAge

3. Use your shared variable in formulas or sections anywhere in your report.

Thanks,

DJ

Answers (0)