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

Hide "One or more parameters are not set or have invalid values." message

3 Answers 152 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 23 Aug 2010, 09:16 AM
Hello,
I need to open from a SL4 application a report passing 2 parameters (I open the report using the SL reportviewer inside a RadWindow), I load the report calling a method Load that's got the following code :

private void Load(int u_rapporto, DateTime date)
      {
          if (u_rapporto != 0)
          {
              reportViewer.Height = double.NaN;
              var reportViewerModel = reportViewer.DataContext as ReportViewerModel;
 
              Telerik.Reporting.Service.Parameter paramRapporto = new Telerik.Reporting.Service.Parameter();
              paramRapporto.Name = "Rapporto";
              paramRapporto.Type = typeof(int).FullName;
              paramRapporto.Value = u_rapporto;
 
              Telerik.Reporting.Service.Parameter paramData = new Telerik.Reporting.Service.Parameter();
              paramData.Name = "Data";
              paramData.Type = typeof(DateTime).FullName;
              paramData.Value = date;
 
              List<Telerik.Reporting.Service.Parameter> lst = new List<Telerik.Reporting.Service.Parameter>();
              lst.Add(paramRapporto);
              lst.Add(paramData);
 
              if (reportViewerModel.Parameters != null)
              {
                  reportViewerModel.Parameters.Clear();
 
 
                  reportViewerModel.Parameters.Add(paramRapporto);
                  reportViewerModel.Parameters.Add(paramData);
 
                  reportViewerModel.ApplyReportParametersCommand.Execute(null);
              }
              else
              {
                  reportViewerModel.Parameters = lst;
                  reportViewerModel.ApplyReportParametersCommand.Execute(null);
 
              }
          }
          else
          {
              reportViewer.Height = 0;
          }
      }

this works but due to transmission time it shows for some seconds a message "One or more parameters are not set or have invalid values." This it's due to the fact that when the radwindow load it  calls the webservice...is there a way of changing the text or to hide it?
Thanks in advance

Paolo

3 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 26 Aug 2010, 11:44 AM
Hi Paolo,

There is no direct way to influence the report from the Silverlight client as it resides on the server and that is why you're currently bound to use the report parameters to set the values. We have plans to provide report definition in Silverlight so you would be able to pass the values directly without need for the service i.e. there would be no delay and if everything goes well, we might be able to release this functionality for the Q3 release this year.
For the time being, the only way to avoid this message would be if you have predefined default values for the report parameters.

Regards,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Michele
Top achievements
Rank 2
answered on 26 Aug 2010, 01:25 PM
Hello Steve,
thanks for your answer , I've fixed using the reportfactory and in this way I pass the parameters in the

reportViewer_RenderBegin, works like a charm.... one last question, does Telerik Reporting WebService supports net.tcp transport layer?
Thanks
Paolo

0
Steve
Telerik team
answered on 27 Aug 2010, 03:55 PM
Hi Paolo,

First to note that our report service is not a webservice but a WCF service. As such it supports all transport including net.tcp and this is unrelated to how Telerik Reporting works. More information is available in the Net.TCP Port Sharing MSDN article.

Regards,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Michele
Top achievements
Rank 2
Answers by
Steve
Telerik team
Michele
Top achievements
Rank 2
Share this question
or