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

Connection string issues with project level data source

1 Answer 153 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 28 Jul 2015, 08:29 PM

So, I've set up a "component" for a project-level data source as described here: http://www.telerik.com/help/reporting/data-source-how-to-add-project-data-source.html

I've added the new data source to a report, and I have added a table to display the data.

When I go to the Html Preview I get an error " An error has occurred while processing Report 'Xxxx': The ConnectionString property has not been initialized."

While I was following the directions for the component, I had selected a ConnectionString and added in a SQL query with parameters and I was able to preview the data and it was looking just fine. But, now that I've added it to the report I need it in I get the above error.

 Any helps? I'm using the latest Q2 2015 tool.

Thanks,
Ken

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 29 Jul 2015, 12:59 PM
Hello Ken,

The described issue turns out to be a bug introduced with the Q2 2015 version of the product.
We are going to log the issue in our system for improvement and address it in a future version of Telerik Reporting.
Your Telerik points are updated to thank you for reporting the problem.

To work around the problem, please open the project data Designer.cs file and perform the following modification to the Component Designer generated code region:
#region Component Designer generated code
 
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
    //
    // ProjectDataSource
    //
    this.ConnectionString = "Your connection string goes here e.g., AdventureWorks";
    this.SelectCommand = "Your SQL query goes here e.g., SELECT * FROM Person.Address";
 
}
 
#endregion

We apologize for any inconvenience this may have caused.

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
Tags
General Discussions
Asked by
Ken
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or