Pass the datasource as input control in jasper reports - jasperserver

We are having multiple jdbc data source with same report structure in our jasper server, currently we have separated the report for each data source instead of this we need to pass the data source as parameter/input control it will help us to save lot of timings and man effort.

Related

How to publish data blended data sources?

I have a workbook with datasources blended and calculated fields referencing these datasources.
I get an error alert publishing to tableau server.
How do I publish the data sources?
I use tableau 2019
Create an extract of the blended data source, and publish that extract to the server. This extract will included all the calculated fields that are included in the current workbook.
Generally for this type of use case I suggest publishing your data extracts separately. They can contain your calculated fields. Publishing the calculated fields is actually more performant anyway, many of them become materialised.
You can connect to both server data sources in desktop, and perform the data blending within the Tableau workbook using the published data sources. You can create additional calculated fields, including those from data blends, within the workbook. You're then able to publish the workbook and those calculated fields will remain at the workbook level, not the data source.
Other users connecting to the data sources will only see the calculations published into the extract, not the calculations published with the workbook.
Hope that makes sense.

Programmatically replace data table or data field in Tableau

In my company we have 1K+ Tableau workbooks, all using same Vertica data source via multiple-table connection or custom SQL. Often we end up in situation where reports stop working because underlying data source was changed: table renamed, field removed etc.
How can we proactively react to these changes is my question.
Can we try to correct source code of tableau workbooks to batch replace deprecated query parts?
Or can we monitor what data tables are used in the workbook with/without parsing the source code of the workbook to create alert system?
Thanks

jasper report: generation of simple jrxml to display db table

I have very large number of db tables in pracle database. I would like to somehow generate simple jasper report (version 6.0.3) for each of them.
One line with the name of table as header and under it common table displaying all columns of table. Option to exclude some columns from predefined list is welcome.
Any advise? Has someone any experience with this issue?
Thank in advance
My idea is use some ETL tool for extract specification of tables directly from database and map it somehow into xml files
There is a cloud based tool that generates the JRXML transparently based on the data structure, you can check it out at http://flashreport.io.
It supports simple XML and JSON as input, but does not allow excluding specific columns. You would have to do that in your ETL tool.
You can use iReports, which is a designing tool for generating jrxml files (which are jasper-reports xml files): iReports tutorial. You have just to create a data-source (in this case you can create a connection to your DB), and construct your report design by dragging and dropping the tables/columns into it (mapped from the underlying data-source).
I've personally been working this iReports, but nowadays the jaspersoft community is putting it's efforts into another tool: Jaspersoft Studio, which seems to be the future replacement for iReports

Database portable Jasper reports

I use iReport designed jrxmls for Jasper reports
I have done database specific functions and DML queries like date format, string concatenation, concatenate symbol(||) etc.
My Question is, "Is there any way or plug-in to make the jrxml files to be database portable?".
Thanks in advance,
Kalaiselvan.
You are using JDBC, so your reports are already kind of portable unless you use some vendor-specific SQL functions or features.
You could write your OWN datasource in JasperReports (do implement JRDataSource interface), and provide your own layer of database independence. It shouldn't be that hard.
Each report is filled from a data source like a database, but you knew that. Since the report is filled by fetching data from a specific database with queries to specific rows, if you want to make your .jrxml files database portable (or your .jasper files for that matter) you will need to make your data source and sql queries parameters which are fed into your report file from your program. It is pretty straight forward to make the data source and SQL query a parameter using iReport.

Performance issues with ADO.Net Datasets

I really want to know your experience at working with ADO.Net datasets (calling stored procedures from SQL) and Crystal Reports, I know about the 2-4 seconds to
CrystalDecisions.CrystalReports.Engine.ReportDocument document = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
document.Load(file);
but what about the load of each tableadapter is there another way to work with Crystal Reports? Maybe with LINQ
Thanks in advance
I have used DataSets with Crystal. In general I do not like to allow Crystal Reports to fetch its own data as we have had errors with it opening too many connections to the Database. I usually create a DataSet and serialize it to XML with the schema and use the xml file as the ADO.Net "DataBase" for design purposes and then at runtime I assign the DataSet to the Report
Dim rd As New ReportDocument
rd.Load("SomeReport.rpt")
rd.Database.Tables(0).SetDataSource(dataset)