Passing a variable as a parameter value instead of a literal string to a child report?

In the Navigation section (Jump to URL), I have the following:

="javascript:void(window.open('http://localhost/reportserver?/Reports
+Folder/My
+Report&rs:Command=Render&StartDate=01/01/2009&FinishDate=12/31/2010'))"

This works as designed - a new window pops up with the "My Report"
report and the StartDate and FinishDate of 01/01/2009 and 12/31/2010
are passed respectively.

But what is the syntax for changing the "01/01/2009" and "12/31/2010"
to variables that point to the StartDate and FinishDate parameters of
the PARENT report?

I've tried Parameters!StartDate.Value and StartDate.Value in place of
the literal strings and continue to get errors.  Both the parent
report and child report have the same two parameters called StartDate
and FinishDate.

Many thanks!

Andy Novak
University of North Texas
0
andy
11/3/2009 11:15:54 PM
sqlserver.reportingsvcs 542 articles. 0 followers. Follow

1 Replies
711 Views

Similar Articles

[PageSpeed] 13

On 3 Nov, 23:15, "andy.no...@unt.edu" <ano...@unt.edu> wrote:
> In the Navigation section (Jump to URL), I have the following:
>
> =3D"javascript:void(window.open('http://localhost/reportserver?/Reports
> +Folder/My
> +Report&rs:Command=3DRender&StartDate=3D01/01/2009&FinishDate=3D12/31/201=
0'))"
>
> This works as designed - a new window pops up with the "My Report"
> report and the StartDate and FinishDate of 01/01/2009 and 12/31/2010
> are passed respectively.
>
> But what is the syntax for changing the "01/01/2009" and "12/31/2010"
> to variables that point to the StartDate and FinishDate parameters of
> the PARENT report?
>
> I've tried Parameters!StartDate.Value and StartDate.Value in place of
> the literal strings and continue to get errors. =A0Both the parent
> report and child report have the same two parameters called StartDate
> and FinishDate.
>
> Many thanks!
>
> Andy Novak
> University of North Texas

Hi

This should help

http://www.reportingservicestips.co.uk/RSTip018.html

Rick
0
Rictastic
11/4/2009 10:48:28 AM
Reply:

Similar Artilces: