How to create a DataSet for RDLC reporting from a stored procedure "ObjectResult" using ADO.Net Entity Data Model - frameworks

I'm trying to generate an ObjectResult as the DataSource for a ReportViewer. The report viewer is looking for a data table as the data source.
Is there an easy way to convert a stored procedure's ObjectResult for use as a RDLC data source?
The following is the current state of my code:

Created a utility to generate a DataSet from the generated list.

Related

How set parameters in SQL Server table from Copy Data Activity - Source: XML / Sink: SQL Server Table / Mapping: XML column

I have a question, hopefully someone in the forum could give some help here. I am able to pull data from Soap API call to SQL Server table (xml data type field actually) via Copy Data Activity. The pipeline that runs this process is metadata driven, so how could I write other parameters in the same SQL Server table for the same run? I am using a Copy Data Activity to load XML data to SQL Server table but in Mapping tab I am not able to select other parameters in order to point them to others SQL table columns.
In addition, I am using a ForEach Activity in order the Copy Data Activity iterates for several values of one column on SQL Server table.
I will appreciate any advice on this.
Thanks
David
Thank you for your interest, I will try to be more explicit with this image: Hopefully this clarify a little bit. Given the current escenario, how could I pass StoreId and CustomerNumber parameters to the table Stage.XmlDataTable?
Taking in to account in the mapping step I am just able to map XML data from the current API call and then write it into Stage.XmlDataTable - XmlData column.
Thanks in advance David
You can add your parameters using Additional Columns in the Copy data activity Source.
When you import schema in mapping you can see the additional columns added in source.
Refer to this MS document for more details on adding additional columns during the copy.

How to create table using json in birt

i am having one column data as JSON format in table. i want to pass that column as report parameter in BIRT. can anyone help me how to parse JSON data and use it in the report.
One way to access the data sent through report parameter is creating a POJO (Plain Old Java Objects) Data Source.
You should create 3 java classes and convert it to jar file and use that as input for POJO Data Source.
Make sure that column names in json file match with the properties you create in java class.
You can refer this video for more info:
"https://www.youtube.com/watch?v=3ZD8wog2pmk"
Please let us know if you get other ways to achieve the same.

Use multiple data sources within a Jasper report

I have a Jasper server, which holds some reports. These reports I can access by the Rest interface (https, get). One of the reports should return some data from an Oracle database, where data are stored into multiple schemas. The schemas have an identical structure.
select * from schemaA.tableX
displays the data from schemaA. Now I have to change the report data source:
select * from schemaB.tableX
to display the data from schemaB (structure of tableX is the same as in schemaA). I would like to configure my report with a parameter, to switch between the schemas (there are a lot of such schemas into the database).
Is it possible to change the schema name within the report dynamically or can I change the datasource definition of the report using a report parameter? I would prevent n identical reports on the Jasper server which only differ in the datasource definition.
Thank you.

JasperReports: dynamic report generation

I am new to JasperReports. I need to design a report where certain columns and rows are dynamic. For this how I have to design the report and after design i want to integrate with my application for fetching data from action class and dto. How to map data for its?
I don't know how dynamic it will be, but it may help you: http://dynamicjasper.com/
It uses JasperReports to generate your report and it also allow you to create your report on the fly.
There are 2 options to map data with the columns. First option is u can pass ur data into data Source binding with the column name as key value pair. And the second option is u can pass the obj of your dto to data source directly in list form.
Use report.setDataSource() for setting the data. In first option make sure your type of the data matches with the column name.

Can crystal reports get data from an object data source?

Can crystal reports get data from an object data source instead of a database? I am using the crystal reports that comes with vs2008. I am coding in c# 3.5.
I would like to use an object data source that returns a List< MyClass>.
For when we migrate to ssrs in the future, Can ssrs 2008 get data from this object data source ?
SetDataSource has an overload excepting ICollection parameters. Using it, you can bind simple collections of objects to CR. But this isn't that flexible than using data sets. With data sets you can bind multiple related tables and build reports of a higher complexity.
The migration of your server has no impact on CR, because SetDataSource only works with disconnected objects such as data sets or object data sources.
Yes you can do that, but you have to wrap the objects in an array :
// my crystal report
Rpt rpt = new Rpt();
AirLine lAirLine = (AirLine)cmbAirLine.SelectedItem;
// I added two objects as datasources in report designer
// here aWB.AWBPieceList is List<AWBPiece> where 'AWBPiece' is some class.
rpt.Database.Tables[0].SetDataSource( AWBPieceList.ToArray() );
// the second : objects are mapped to tables by crystal report.
rpt.Database.Tables[1].SetDataSource( new AirLine[] { lAirLine } );