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

Project Datasources

7 Answers 169 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
GEB
Top achievements
Rank 1
GEB asked on 18 Aug 2010, 02:29 PM
I am using the Q2 version of Reporting, using the new EF feature.  I create a new report, and define a new datasource. All works well. Now I create a second report, and want to reuse the datasource created in the first report.  However, there are no datasources listed under Project Datasources.  How does a datasource get created that can be used across multiple reports?

7 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 19 Aug 2010, 04:11 PM
Hi GEB,

You have created a Report Data Source that is in scope only in the report it has been created for. In order to create a Project Data Source component follow the steps:
  1. From the Project menu select Add -> New Item
  2. In the Add New Item dialog box, choose a Component Class and click Add.
    The new file is added to the project and automatically opened in Visual Studio.
  3. F7 to open the code view
  4. Change the inheritance of the public partial class to an appropriate Telerik Reporting DataSource component (Telerik.Reporting.EntityDataSource, Telerik.Reporting.SqlDataSource) as shown in the following code snippet: 
    public partial class Component1 : Telerik.Reporting.EntityDataSource
  1. Save and rebuild
  2. Right click the component class -> View Designer
  3. Click Configure data source
  4. Follow the wizard
  5. Save and rebuild

Regards,
Peter
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
Greg
Top achievements
Rank 1
answered on 03 Dec 2012, 02:21 PM
Peter,

The steps you outline do not appear to work with a Telerik.Reporting.ObjectDataSource. 

I tried following the steps to create a Project Datasource with an Object Data Source as show here:
http://www.telerik.com/help/reporting/data-source-how-to-add-project-data-source.html

An Object Data Source  does appear under "Project Datasources" in the Report, however the Object Data Source Wizard displays NO Objects for me to bind the datasource to when I click "Configure Data Source".  I have 44 reports to create and would like to create 8 Project Datasources to use in them. We use LINQ functionality to connect to the SQL Server Database and provide the objects we bind the datasource. Object Data Sources created locally to each report do work correctly, just not the Component Classes created to be used as a Project Datasource. 

Is this a known issue, is there a workaround ?
0
Peter
Telerik team
answered on 04 Dec 2012, 05:46 PM
Hello Greg,

We have verified the issue and can confirm that such a problem really exists. The issue is logged in our bug tracking system and will be fixed for the service pack. The SP will be available in a few weeks.

In the meantime you can use the report data source components and copy/paste them between the report definitions.

Your Telerik points have been updated for letting us know about the problem.

Kind regards,
Peter
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
David
Top achievements
Rank 1
answered on 09 Jul 2018, 07:23 AM

This issue is still there in a freshly downloaded copy of Telerik Reporting 2018 Q2; happeing as descriobed in VS 2017;  msiing itmes & crash upon load.

As above I need to share my dataset - tedious to keep re-creating this accross multiple reports.

 

 

 

0
Ian
Top achievements
Rank 1
answered on 28 Sep 2018, 01:30 PM
This issue still appears in the latest reporting 12.2.18.912 R3 2018 in VS 2017. Please can someone at Telerik confirm when this bug will be fixed? It makes things tedious for us too.
0
Ian
Top achievements
Rank 1
answered on 28 Sep 2018, 02:08 PM

I wanted to share with others because I found a work around to this problem. If like me you have already created a object datasource within a report and would like to refactor then its fairly easy to identify the designer generated code in the report for the datasource. 

I simply copy and pasted the code into the initialize component method of the new datasource class - it looks like this:

      // <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            // 
            // ReportComparisonLevelsDataSource
            // 
            this.DataMember = "GetReportComparisonLevels";
            this.DataSource = typeof(RedxClientCommon.DataSources.ReportEnums.ReportParams);
            this.Name = "ReportComparisonLevelsDataSource";
            this.Parameters.AddRange(new Telerik.Reporting.ObjectDataSourceParameter[] {
            new Telerik.Reporting.ObjectDataSourceParameter("viewenforcement", typeof(bool), "= RedXWeb.Reporting.CMTReportingFunctions.GetUserPermissions()")});
        }
0
Silviya
Telerik team
answered on 03 Oct 2018, 11:47 AM
Hello Ian and David,

I tested and managed to reproduce the problem with Telerik Reporting version 12.2.18.912 and Visual Studio 2017. Indeed, the provided steps to create a Project DataSource with an Object Data Source results to crashing Visual Studio.
 
Thank you both for reporting the issue - we have logged it in our system for fixing. As a token of gratitude for revealing the problem we have updated your Telerik points.

Regards,
Silviya
Progress 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
GEB
Top achievements
Rank 1
Answers by
Peter
Telerik team
Greg
Top achievements
Rank 1
David
Top achievements
Rank 1
Ian
Top achievements
Rank 1
Silviya
Telerik team
Share this question
or