// First parameter: this.StorageSystemDataSource.ConnectionString = "..."; this.StorageSystemDataSource.Name = "SystemDataSource"; this.StorageSystemDataSource.SelectCommand = "dbo.GetSystemType"; this.StorageSystemDataSource.SelectCommandType = Telerik.Reporting.SqlDataSourceCommandType.StoredProcedure; // Second parameter: this.SystemNameDataSource.ConnectionString = "..."; this.SystemNameDataSource.Name = "SystemNameDataSource"; this.SystemNameDataSource.Parameters.AddRange(new Telerik.Reporting.SqlDataSourceParameter[] { new Telerik.Reporting.SqlDataSourceParameter("@SystemTypes", System.Data.DbType.AnsiString, "=IIF(Parameters.SystemTypeParameter.Value(0) = -1, Nothing, Join(Parameters.SystemTypeParameter.Value, \",\"))")}); // is that the way to combine the values???? this.SystemNameDataSource.ProviderName = "System.Data.SqlClient"; this.SystemNameDataSource.SelectCommand = "dbo.GetSystemByTypes"; // I need to reactivate this stored procedure on each selection changes of the first parameter values. this.SystemNameDataSource.SelectCommandType=Telerik.Reporting.SqlDataSourceCommandType.StoredProcedure;
Hello Telerik Team,
I have a requirement to bind two data sources to a single report.I was trying some of your blogs to do that.
The method i used to display a subreport in a main report is as follows:
1>Created a report called "X" and put some fields in it and binded the datasource to that report and build it..its working fine....As of now,I am not using any parameters.
2>I created another report called "Y" and from the tool box i dropped subreport item and
in the properties section I have selected the report source property as "x".
When i build the report "y" i get the error "Type name x-subreport does not exist in the type "Projectname"
I tried using Need datasource event and it says the same error.dO i need to add anything to the project file.?
Please let me know.
Can you list the way step by step.
I am unable to achieve it.
Can you send me a sample to do that.
Thank you,
Smith