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

External parameters

6 Answers 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mrezam
Top achievements
Rank 1
mrezam asked on 07 Oct 2013, 06:46 AM
How can i send in additional external parameters based on other factors into teh report.

Lets say user can log in only as one group and the report has to set up so it will give only the right parameters to filter the data on.

Thanks
 

6 Answers, 1 is accepted

Sort by
0
mrezam
Top achievements
Rank 1
answered on 08 Oct 2013, 11:42 PM
Can we get some help on our requests? If there is no support for this version maybe I will look at some other reporting tool. This is a new experience with telerik support for me. Normally they have been quick to respond and very helpful.

0
Peter
Telerik team
answered on 09 Oct 2013, 01:01 PM
Hi,

Do you want pass report parameters programmatically? If this is the case check out the InstanceReportSource Class help article. If you need additional assistance please elaborate further on your scenario so we can advice you accordingly.

Up to the response time inquiry the trial users get 72 hrs response time, while If you are added as licensed developer you get 24 hrs response time. For more information check out the Support Options page.

Regards,
Peter
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

0
mrezam
Top achievements
Rank 1
answered on 11 Oct 2013, 04:29 AM
This is what I am trying to achieve. Could you give me more documentation or a sample that has this code snippet? I cannot get the code snippet in this blog work for me but the end result will work for me.

0
Stef
Telerik team
answered on 15 Oct 2013, 05:51 PM
Hi,

The code snippet in the External Report Viewer Parameters forum thread illustrates passing of report parameters values using the new HTML5 Report Viewer.

Using the ASP.NET ReportViewer control you can pass parameters' values in a similar way through the report source object binding the report to the viewer. As illustrated in the InstanceReportSource Class article setting value to report parameter named Param1, existing in MyReport report definition would look as follows:
protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InstanceReportSource reportSource = new InstanceReportSource();
                reportSource.ReportDocument = new MyReport();
                reportSource.Parameters.Add("Param1", TextBox1.Text);
 
                this.ReportViewer1.ReportSource = reportSource;
            }
        }

Notice the report source does not contain information about the underlying report parameters. You need to add them in the ReportSource.Parameters collection by using the same names as in the report definition.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

0
mrezam
Top achievements
Rank 1
answered on 23 Oct 2013, 12:32 AM
I need to do these reports with html reportviewer. Do you have a working sample or provide one. I have tried the code snippet from the other article and have not been able to get it to work.

Thanks
0
Chavdar
Telerik team
answered on 25 Oct 2013, 01:47 PM
Hello,

Please, take a look at the How To: Pass values to report parameters help article and let us know if you have any further questions.

Regards,
Chavdar
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

Tags
General Discussions
Asked by
mrezam
Top achievements
Rank 1
Answers by
mrezam
Top achievements
Rank 1
Peter
Telerik team
Stef
Telerik team
Chavdar
Telerik team
Share this question
or