This is a migrated thread and some comments may be shown as answers.

How to open links to sub-reports in new windows

1 Answer 375 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 1
Shawn asked on 30 Jun 2016, 11:12 PM

Hi,

I have a report with fields that can be clicked to open a sub-report.  I implemented this functionality by selecting the field that I wanted to be "clickable" and then specifying "navigate to report" as the action property.

The issue is that when a user clicks on the link to navigate to the sub-report, the sub-report loads over top of the current report.  The user is then unable to navigate back to the parent report without having to reenter the parameters and run the report again.

I'm looking for a way to open the sub-report in a new tab/window but I do not see an option to do so.  There is an option to open a URL in a new window but we don't have a way to pass parameters into the URL which would be needed to populate the sub-report.

Is there a workaround to navigate to a report and have that report open in a new tab/window?  Our team is using Report Designer so we're unable to create user functions.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 01 Jul 2016, 12:30 PM
Hi Shawn,

The NavigateToReportAction opens target reports in the same viewer, where to get back to the main report you can use the viewer's toolbar (navigation buttons).


You can use the NavigateToUrlAction to open a new window with other report viewer. To generate a query string, you can set the action's Url via expression like:
Telerik.Reporting.NavigateToUrlAction UrlAction1 = new Telerik.Reporting.NavigateToUrlAction();
UrlAction1.Url = "='http://demos.telerik.com/reporting?ID='+Fields.FieldID+'¶m='+Parameters.Parameter1.Value ";
textBox1.Action = UrlAction1;

You can use also a custom function to build the URL.


I hope this information is helpful.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Report Designer (standalone)
Asked by
Shawn
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or