connect Jasperreports community edition to another database server - jasper-reports

Version - 6.0.1 (jasperreports-server-cp-6.0.1)
Is it possible to connect jasperreports community edition installed on a ubuntu server to another postgreSQL database server?. I have followed this
https://community.jaspersoft.com/wiki/connecting-jasperreports-server-yo....
When I try to create a data source (JDBC) , its showing nothing like in thedocument. It simply returns the blue menu (Library, view, manage)
Any help would be appreciated.

Assuming you want to report on a different database you have to create a new datasource. Select view->repository, right-click in the tree somewhere and create a new datasource. You have to have the correct driver available but it will already have the driver for postgres. Put in the connection details and save the data source.
When you upload a report to the server, you'll have to then associate the report with the datasource (edit the report properties). This is all covered in the documents you get with the install e.g. JasperReports-Server-User-Guide, JasperReports-Server-Admin-Guide

Related

Connect to DB2 using Rational Software Architect (RSA) 9.0

I want to know the steps for connecting to DB2 using RSA 9.0. I tried the below steps but I am not able to see any schema after connecting.
Opened Database development perspective
Right clicked on Database Connections and clicked on Add Repository
I have only 2 connection profile types listed -Derby and Generic JDBC (I am not sure whether this is the problem as I dont see DB2)
I selected Generic JDBC and clicked on Next
I clicked on new driver configuration add db2 jar (I have tried with db2jcc.jar as well as db2jcc4.jar) and provided the properties
For driver class, I clicked on Available classes from Jar list and used browse for class option. Here I selected com.ibm.db2.jcc.DB2Driver
I have given the connection url in the below format
jdbc:db2://DBServer:port/DBName
When I test the connection it shows ping succeeded. But when I try to open the schemas its blank
When I checked with my colleagues, they get DB2 connection profile in RSA. Let me know is there any option for me to add it.
I got the solution for this. In IBM installation manager, click on modify and select the language. Then in the list of available components select Data tools. Once installed, DB2 connection profile with IBM data server Driver will be available. Hope this helps.

Reg using Jasper reports in PHP/MySQL web application installed using XAMPP

For our web application using PHP & MySQL DB we need to generate reports using jasper reports. We are using XAMPP
We have installed Jaspersoft iReport 5.6.0
To connect to DB - I tried the steps as in this ref link http://chathurangat.blogspot.in/2012/03/jasperreports-with-php.html
1) I selected MySQL (com.mysql.jdbc.Driver) - JDBC Driver (as in step No. 6)
2) Please suggest what I need to give JDBC url for this jdbc:mysql://localhost/DatabaseName
3) My DB is availabe in MySQL - this can be accessed using phpmyadmin interface
Please suggest how can we connect to our MySQL DB
Please suggest whether we need to install anything aditionally
Thank you
When you login into the jasper reports server, there is a root on you left hand side:
Root -> Data Sources.
Data sources -> right click. You will be given open options.
Choose Add Resource -> Data Source.
You will select MYSQL ODBC driver in the drop down box for JDBC Driver:
Input all the right fields and then test your connection.

How Report Builder connects to Progress DB?

We are using XenApp to open Report Builder. Currently it's connected to the production server and connects with progress db.
Now we are in a process of moving to new production server.We need to make sure what are all the configuration files used to connect with report builder with that particuler production server.
Where are the server and db details defined in the report builder?
Are there any confiquration files used for Report Builder?
Current Progress version in production 9.1.
You need to look into your short cut/batch-file starting the report builder and refer to:
Chapter 2 of the Report Builder Tutorial
Chapter 1 of the Report Builder Users Guide
Download pdfs from links below
The settings can basically reside either in files (standard extensions .ini and .pf) or in the registry of your server (given it's a windows server which it most likely is since you're running report builder on it).
Report Builder Tutorial
Report Builder Users Guide

Birt Eclipse, connecting to a SQLite database through ODBC? Do I need a specific JDBC driver for Birt to use?

I have been working on this for a while now and, unfortunately have little previous exposure to Birt as well as JDBC / ODBC. I've been searching and searching but can't conclusively figure out what I need for Birt to be able to connect to an SQLite database through ODBC.
I have setup the SQLit db on my windows machine to use ODBC. From here, however, I can't figure out, in the Birt Report Designer-> New data source-> JDBC data source what I am supposed to put in in order to access the DB.
Do I need a specific driver for this that I need to install to use as the "Driver Class"
Is the path to my ODBC / SQLite db the "Driver URL" field?
I would greatly appreciate any advice on this.
There is a JDBC driver specifically for SQLite, so you don't have to use a bridge.
The URL should be:
jdbc:sqlite:/path/to/my.db
The class is org.sqlite.JDBC.
As the initial answer points out, you can download the SQLite JDBC driver. Once downloaded, you need to correctly deploy the JAR into BIRT so the driver will be available in the eclipse designer. Put the JAR in:
<BIRT Install>\eclipse\plugins\com.actuate.data.oda.jdbc.drivers_<BIRT VERSION>
Once the JAR is there, re-start Eclipse/BIRT and you should be able to create a SQLite data source pretty easily.
Good Luck!

How can i change datasource of a rpt report in Cystal Reports Server

I have 3 different machines with Crystal Reports Server XI R2 installed. They are at different subnets pointing to different oracle databases with same schema definition but different names (dev, test, production).
I got a rpt file created on the development environment, pointing to the "dev" schema.
All went fine. The report executed successfully.
When i got the same rpt and published it in the test server, i could not change the datasource location. It appears that the rpt file keep fixed the datasource that was used in its creation.
Anyone knows how can i change the datasource of a rpt file, making it independent of database location and independent of the database used by the designer?
Thanks
I assume from the question that the different Oracle databases have different database names, but the same schema name - something like OperationalDB on dev, test and live? (It's more complicated if they have different schema names.)
If so, then it depends on what sort of Driver you're using.
If using an ODBC driver, then simply set up different ODBC sources (pointing to the appropriate database) with the same data source name on each of the Crystal machines.
If using a native Oracle driver, then I suggest editing the TNSNAMES.ORA file on each of the machines so that they each have the same TNS name pointing to the appropriate database.
If using a native Oracle driver and you are unable to edit the TNSNAMES.ORA file (for example, if it is a shared network file instead of being located on each of the Crystal machines), then you will need to change the datasource location in the Report Designer (or via the API, if accessing Crystal through one) each time you transfer a report from one machine to another.