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

Is there a How to for Asp.net Core 2.2 Reporting ObjectDataSource

5 Answers 358 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Carlos
Top achievements
Rank 1
Carlos asked on 22 Jan 2020, 03:15 PM

I have been searching and reading for the last 4 hours to find any resource to create an objectdatasource for an Asp.net Core application.  All the samples use framework 4+.  I have three tiers in my application the first layer is the Entity/Model layer the middle tier is the service layer/Business logic layer and the final tier is the Web/UI layer.

I have successfully created a reportviewer that displays an embedded sql with parameters but what I am trying to do is to take an IQueryable<T> from the service layer and populate the report.  Is there an example available?

5 Answers, 1 is accepted

Sort by
0
Carlos
Top achievements
Rank 1
answered on 22 Jan 2020, 08:48 PM

Or and Entity Data Source example.

 

0
Todor
Telerik team
answered on 27 Jan 2020, 12:17 PM

Hi Carlos,

The examples we provide for the ObjectDataSource for .NET Framework are generally valid also for .NET Core/Standard.

If you use .NET Standard 2.0 the Standalone Designer should recognize the custom business objects.

I have attached a sample solution using a Html5 Viewer with REST Service in .NET Core 3.1 project and an ObjectDataSource configured in a .NET Standard 2.0 project.

Regards,
Todor
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
0
Carlos
Top achievements
Rank 1
answered on 29 Jan 2020, 06:53 PM

Thank you I will review and get back to you.

 

0
MCanitez
Top achievements
Rank 1
answered on 29 Jan 2020, 09:34 PM
Hi, I'm using telerik reporting report(.trdp).framework .net standart 2.0 and .net core 2.1. tihis configurition successful running reporting table ,text etc. But I'm insert chart  and datasource options selecting Object Data Source, business object list is empty. I couldn't find any examples about this subject. And I looked at all of the examples you threw but did not meet my request. Please I ask for your help
 
0
Todor
Telerik team
answered on 03 Feb 2020, 11:33 AM

Hi MCanitez,

The Standalone Report Designer is built with .NET Framework 4.6. If you would like to resolve the assemblies assigned to ObjectDataSource components in the designer, they should be built either with .NET Framework or with .NET Standard 2.0 - check .NET implementation support. An assembly that is built with .NET Core cannot be resolved by the Standalone designer.

You may read more about the ObjectDataSource component in the linked article.

Note also that you need to register the ObjectDataSource assembly in the configuration file of the project that renders the report - Configuration. In the .NET Core/Standard project, you may use JSON configuration - assemblyReferences Element. For the Standalone designer check Steps on how to add ObjectDataSource in a report designed in the Standalone Designer KB article.

Regards,
Todor
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
Carlos
Top achievements
Rank 1
Answers by
Carlos
Top achievements
Rank 1
Todor
Telerik team
MCanitez
Top achievements
Rank 1
Share this question
or