Please help: While opening other aspx page, i need to pass parameter in url. This parameter name = value should come from column of telerik report.
9 Answers, 1 is accepted
You can open another page with a similar Target Url e.g.: = "http://www.yourdomain.com/myreportviewer.aspx?MyKey=" + ReportItem.Value where ReportItem.Value would get you the value from the report item which triggered the action. You can get that value in the page you're redirecting to with code like this: string query = (string)Request.QueryString["MyKey"];
Note that Hyperlink Action is opened in a new window by default, whether this window is opened as a new tab is controlled by the browser itself, we do not have control over that behavior.
All the best,
Steve
the Telerik team
HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!
This did not work for me... the url in the new window didn't resolve the parameters. It looked like this.. I'd really like to figure out how to make this work! Appreciate your help.
http://oakappprd04:2000/NodeSprdsByHour.aspx?market=" + =Parameters.market.Value + "&NodeName=" + =Fields.nodename + "&OprDate=" + =Fields.oprdate
use this, the problem is extra = sign that you are using
http://oakappprd04:2000/NodeSprdsByHour.aspx?market=" + Parameters.market.Value + "&NodeName=" + Fields.nodename + "&OprDate=" + Fields.oprdate
I seem to be having an issue with the quotes. Do you need to escape them? also should the url be relative to the main report ? Can you send me an example of a url that you've used?
thanks!
Here is it:
=("Reports/MyReports/CustomReport.aspx?clientID=" + IsNull(Fields.ClientID, "-1") + "&year=" + Parameters.year.Value + "&myvalue=" + Parameters.myvalue.Value))
I have tried with above code it is not working for me .Could you please help me out in this case?
Sample:
=("MaintenanceOrderSupervisor/MaintenanceOrder?OINumber=109)
Hi Steve,
How can we set the parameter value in MVC? I am using like this
PlayVideo?description='+Fields.Description
It is making like this.
http://localhost/Qualanex.QoskCloud.Web/Report/PlayVideo?description=%27+Fields.Description
Fields. not coming properly?
I have tried double quotes also.
Any help?
You need to use an expression which contains a string part concatenated with the data field/parameter part. The approach is demonstrated in the attached report.
Regards,
Nasko
Telerik
Nasko,
Thanks for the reply, I know that we will have to use the concatenation and I am following the same. But the main problem is in URL. I am not getting that How can I make the first Url(before concatenating the parameters) as String. If I am using the Double quotes or single Quotes, That is not useful. I have tried like this, but could not solve my problem
PlayVideo?description='+Fields.Description
I know In case of simple URL query string appending It can be done, but in case of MVC, How?
any help will be appreciated.