We are using Birt report viewer to create reporting pages.
We use jdbc data source to connect with a Oracle database.
But is it possible to use a rest api (json format) as data source for the reports?
Does someone has experience with this?
BIRT has no build in JSON data source. However there are some community JSON data source plugins, but all of them I have seen are very low level and not comfortable to use, so I do not recommand any of them here.
You could create a "scripted data source" where you connect to your URL and parse the result by yourself but this is also not very comfortable. Someone tried it here so you have a starting point.
If you are in charge of the infrastructure providing the JSON output it would be easier to add an export to XML and use the BIRT build in XML data source.
Related
I've got a test SSIS package that reads this API https://api.coindesk.com/v1/bpi/currentprice.json
Which exports it to a table in SQL Server.
What is the best way of parsing this data so it is split into multiple columns correctly?
Disclaimer - I work for ZappySys (Company which makes API Connectors / Drivers for SSIS and ODBC)
Loading data from JSON file or REST API into SQL Server can be done few ways. For example, I literally took URL you supplied and put in JSON Source and got it working in 2 mins.
Method-1: Use 3rd party JSON Source Component (e.g. ZappySys)
Here is how to do using SSIS JSON Source by ZappySys (3rd party)
Method-2: Use C# code in Script Component
If you like to use FREE approach, then you can write C# code like this.
I am new to Azure Data Factory. And my question is, I have a requirement to move the data from an on-premise Oracle and on-premise SQL Server to a Blob storage. The data need to be transformed into JSON format. Each row as one JSON file. This will be moved to an Event Hub. How can I achieve this. Any suggestions.
You could use lookup activity + foreach activity. And inside the foreach, there is a copy activity. Please reference this post. How to copy СosmosDb docs to Blob storage (each doc in single json file) with Azure Data Factory
The Data copy tool as part of the azure data factory is an option to copy on premises data to azure.
the data copy tool comes with a configuration wizard where you do all the required steps like configuring the source, sink, integration pipeline etc.
In the source you need to write a custom query to fetch data from the tables you require in json format.
In case of SQL server to select json you would use the options OPENJSON, FOR JSON AUTO to convert the rows to json. Supported in SQL 2016. For older versions you need to explore the options available. Worst case you can write a simple console app in C#/java to fetch the rows and then convert them to json file. And then you can upload the file to azure blob storage. If this is an one time activity this option should work and you may not require a data factory.
In case of ORACLE you can use the JSON_OBJECT function.
my application is having backend n Java and front-end in React.I am getting response for an API from server as JSON and rendering that to a page.l want to provide a download option with download as PDF and Excel.Can some one please guide me what will be the best option for it.
You can use stimulsoft.js for this.
You have to download stimulsoft deisgner
You have to design a report which surely meets your json format
Integrate min.js of stimulsoft into your project
Modify it as per your requirements.
Follow the instructions given by stimulsoft.
I understand that from Business Objects client I have an option to export to "CSV (data only)", but my understanding is that, such an export will not care about the report but just dump the raw universe data.
Isn't there any single way to be able to export the report "view" to CSV ?
It depends on the version of BusinessObjects you're working on.
Originally, the CSV export only looked at the Web Intelligence (I assume you're referring to that particular client) microcube, meaning the raw data retrieved from the data provider(s), and disregards any formatting, filters, aggregations, … you may have specified on your report.
GUI
However, you know have the option to export a report (so not the whole document) as a CSV Archive, which results in a Zip file containing a CSV for the active report at the time of export.
I'm referring to BI 4.1 SP05, previous versions may have this option as I'm not sure when it was introduced.
API
Using the RESTful API that is available in BI4, you can also export a report to CSV. In this case, the actual CSV file will be returned instead of an archive.
Remember that in order to use the RESTful API, you need to have a WACS server in your BusinessObjects environment, running the RESTful API service. You cannot deploy the REST API on an external Java application server.
For more information, have a look at the section Exporting a Report in Listing Mode (SDK information for BI 4.1 SP05).
Remarks
A report is a tab within a document; documents however are often (incorrectly) referred to as reports.
I am currently making a data visualisation website which looks at a remote source of data which is in XML.
I am confused on how to get the data from the XML dataset into a MySQL database.
in order to visualize, probably you don't need to put the data into the database. probably you just need to have the data accessible on the client side (javascript). in this case, you should just call the XML data interface from javascript (with jquery, for example), and process the result