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

Setting multiple value to a multivalued integer parameter

4 Answers 85 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jaggu
Top achievements
Rank 1
Jaggu asked on 10 Dec 2012, 06:03 AM
Hi,
I am using telerik reporting, here i have a  multivalued parameter on the report which is of type Integer,
I want to set value to this parameter from the client side..

Currently i am using the below code and it doesn't work..

         List<int> values= new List<int>();
           values.Add(1);
           values.Add(2);

        args.ParameterValues["Parameter1"] = values;



and also tried this.

     Int[] values= {1,2,4};
     args.ParameterValues["Parameter1"] = values;




Thanks

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 10 Dec 2012, 03:19 PM
Hello Jaggu,

Your question has already been answered in the other thread you've opened.and here is our answer:

The multivalue report parameter's value is of object array type. So changing your code like this would work:
Copy Code
object[] values = { 1, 2, 3, 4 };
args.ParameterValues["Parameter1"] = values;

We kindly ask you to use just one support channel to contact us. Posting the same questions numerous times slows down our response time because we will need to review and address two threads instead of one. Threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread.

Thank you for your understanding.

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
Rasmus
Top achievements
Rank 1
answered on 08 May 2013, 11:24 AM
I have a follow up question: Is there a limit to the list length? Because I can make it work with a few integers, but after a certain point (e.g. 1100 integers) I get a "Not found" error immediately - i.e. without ever reaching the server side.
0
Hadib Ahmabi
Top achievements
Rank 1
answered on 10 May 2013, 02:26 PM
Check your configuration: max message size, max buffer size, timeouts, etc..
0
Rasmus
Top achievements
Rank 1
answered on 13 May 2013, 12:04 PM
Ok I figured it out. I found this guide explaining how to fix timeout issues: http://www.telerik.com/help/reporting/wcf-report-service-increasing-timeout.html. We already had the code-behind in place, but I noticed that we hadn't specified the readerQuotas settings. After I added custom binding configurations in the web.config file it worked

<bindings>
	<basicHttpBinding>
		<binding name="reportServiceBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"
			 receiveTimeout="00:10:00" sendTimeout="00:10:00">
			<readerQuotas maxArrayLength="2147483647" maxStringContentLength="2147483647"/>
		</binding>
	</basicHttpBinding>
	<webHttpBinding>
		<binding sendTimeout="00:10:00" receiveTimeout="00:10:00"/>
	</webHttpBinding>
	</bindings>		
    <services>
      <service name="Telerik.Reporting.Service.ReportService" behaviorConfiguration="ReportServiceBehavior">
        <endpoint address=""
									binding="basicHttpBinding" bindingConfiguration="reportServiceBinding"
									contract="Telerik.Reporting.Service.IReportService">
        </endpoint>
        <endpoint
                address="resources"
                binding="webHttpBinding"
                behaviorConfiguration="WebBehavior"
                contract="Telerik.Reporting.Service.IResourceService"/>
        <endpoint
                address="mex"
                binding="mexHttpBinding"
                contract="IMetadataExchange" />
      </service>
    </services>		
		
    <behaviors>
      <serviceBehaviors>
        <behavior name="ReportServiceBehavior">
          <serviceMetadata httpGetEnabled="true" />
					<serviceDebug includeExceptionDetailInFaults="false" />					
					<dataContractSerializer maxItemsInObjectGraph="2147483647" />
				</behavior>
        <behavior name="">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
          <dataContractSerializer maxItemsInObjectGraph="2147483647" />
          <serviceThrottling maxConcurrentCalls="100" maxConcurrentSessions="1000"/>
        </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
        <behavior name="WebBehavior">
          <webHttp />
        </behavior>
      </endpointBehaviors>
    </behaviors>		
Tags
General Discussions
Asked by
Jaggu
Top achievements
Rank 1
Answers by
Steve
Telerik team
Rasmus
Top achievements
Rank 1
Hadib Ahmabi
Top achievements
Rank 1
Share this question
or