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

Navigating with parameters

9 Answers 482 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sandip
Top achievements
Rank 1
Sandip asked on 16 Nov 2012, 10:01 AM
I want to navigate from column of the report to other page with a parameter with field value (eg. =Fields.ProjAdvName) and also want a popup window rather than tab on next page as I redirect to other page with the column click. I searched it and tried it but didn't work sorry if my search is inadequate

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

Sort by
0
Steve
Telerik team
answered on 20 Nov 2012, 12:54 PM
Hello Sandip,

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!

0
Karl
Top achievements
Rank 1
answered on 08 Feb 2013, 07:56 PM
Hi Steve,
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
0
Sandip
Top achievements
Rank 1
answered on 09 Feb 2013, 07:00 AM
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
0
Jill
Top achievements
Rank 1
answered on 11 Feb 2013, 06:27 PM
Hi Sandip,
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!
0
Sandip
Top achievements
Rank 1
answered on 12 Feb 2013, 08:59 AM
You don't need quote sort of things, you can just handle those value in Request.QueryString as a string
Here is it:

=("Reports/MyReports/CustomReport.aspx?clientID=" + IsNull(Fields.ClientID, "-1") + "&year=" + Parameters.year.Value + "&myvalue=" + Parameters.myvalue.Value))
0
Thulasi
Top achievements
Rank 1
answered on 13 Mar 2014, 07:57 AM
Hi Sandip,

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)
0
Nimish
Top achievements
Rank 1
answered on 03 Aug 2015, 05:21 PM

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?

0
Nasko
Telerik team
answered on 06 Aug 2015, 12:34 PM
Hello Nimish,

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
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
0
Nimish
Top achievements
Rank 1
answered on 06 Aug 2015, 01:08 PM

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. 

 

Tags
General Discussions
Asked by
Sandip
Top achievements
Rank 1
Answers by
Steve
Telerik team
Karl
Top achievements
Rank 1
Sandip
Top achievements
Rank 1
Jill
Top achievements
Rank 1
Thulasi
Top achievements
Rank 1
Nimish
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or