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

how to pass parameter when opening a report from another report through hyperlink

1 Answer 288 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
tanmoy sinha
Top achievements
Rank 1
tanmoy sinha asked on 25 Jul 2011, 11:25 AM
HI ..
        I ahve one report which have some hyperlinks in it.I want to open another report on click of the hyperlinks in a different window and i want to pass some parameters to it.How can i achieve the same using telerik reporting?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 25 Jul 2011, 12:27 PM
Hi Tanmoy,

If we understand correctly your particular scenario, you want to use the report to "post" some kind of "commands" for your application that are not valid from outside the application. Although we're not familiar with your application we would suggest extracting these actions from the reports to the application. This way the reports will contain only the relevant information and will be really portable - that is you can export them to PDF or Excel and can open them outside your application.
To answer your question directly, you can accomplish such functionality by utilizing Hyperlink Action with a similar Target Url e.g.:

= "http://www.yourdomain.com/radwindow.aspx?MyKey=" + ReportItem.Value

where ReportItem.Value would get you the textbox value and you can get it within code like this:

string query = (string)Request.QueryString["MyKey"];

Of course you can harcode any values instead of using ReportItem.Value depending on what you need.

Regards,
Steve
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
General Discussions
Asked by
tanmoy sinha
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or