Navigating with parameters

10 posts, 0 answers
  1. Sandip
    Sandip avatar
    3 posts
    Member since:
    Nov 2012

    Posted 16 Nov 2012 Link to this post

    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.
  2. Steve
    Admin
    Steve avatar
    10940 posts

    Posted 20 Nov 2012 Link to this post

    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!

  3. Karl
    Karl avatar
    2 posts
    Member since:
    Oct 2010

    Posted 08 Feb 2013 Link to this post

    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
  4. Sandip
    Sandip avatar
    3 posts
    Member since:
    Nov 2012

    Posted 09 Feb 2013 Link to this post

    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
  5. Jill
    Jill avatar
    2 posts
    Member since:
    Jun 2012

    Posted 11 Feb 2013 Link to this post

    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!
  6. Sandip
    Sandip avatar
    3 posts
    Member since:
    Nov 2012

    Posted 12 Feb 2013 Link to this post

    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))
  7. Thulasi
    Thulasi avatar
    1 posts
    Member since:
    Oct 2013

    Posted 13 Mar 2014 in reply to Sandip Link to this post

    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)
  8. Nimish
    Nimish avatar
    10 posts
    Member since:
    Jun 2015

    Posted 03 Aug 2015 in reply to Steve Link to this post

    Hi Steve, 

    How can we set the parameter value in MVC? I am using like this

    PlayVideo?description='+Fields.Description

    It is making url like this.

    http://localhost/Qualanex.QoskCloud.Web/Report/PlayVideo?description=%27+Fields.Description

    Fields.Description value is not coming properly?

    I have tried double quotes also.

    Any help?

  9. Nasko
    Admin
    Nasko avatar
    1085 posts

    Posted 06 Aug 2015 Link to this post

    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
  10. Nimish
    Nimish avatar
    10 posts
    Member since:
    Jun 2015

    Posted 06 Aug 2015 Link to this post

    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 mvc 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. 

     

Back to Top