How to use Jasper Reports with AngularJS - angularjs

I googled for using JasperReports with AngularJS is possible or not, but I couldn't find any exact solution about that.
Let me explain our current situation and after that I will explain what I want to do.
We are using Spring for our application backend and JasperReports for generating reports on the server side. We have Pdf, Excel and HTML options for generating reports, all types of reports generated by JasperReports.
Now, we are developing a new application using AngularJS for front-end and again Spring for developing JSON based Rest services. Front-end and backend codes are running in different servers, we are using tokens for authentication.
My question, is it possible to generate reports with JasperReports and show to user in Pdf, Excel and HTML to users? If not, is there any solution to show reports to users in these formats with or without pagination?
Thx in advance.

Related

Embed SSRS Report Viewer in Flask application

Context: I have a web application written in Python using Flask. I need to embed some reporting utility in the application and would like to use SSRS.
Question: I've investigated a few MSDN resources including the following:
(https://learn.microsoft.com/en-us/sql/reporting-services/report-server-sharepoint/add-the-report-viewer-web-part-to-a-web-page?view=sql-server-ver15)
It appears that this route would require implementing Sharepoint. Is this true? Is there any way to embed SSRS reports in webpages without needing to use Sharepoint?
Sharepoint is definitely not required. But there are different options with different tradeoffs.
Simplest is to add rs:embed=true to a report URL and load it in an iframe, which works great if your users can authenticate to SSRS using Windows Integrated Auth. This doc details how to embed into SharePoint using this technique, but it works equally well for any custom app, so long as the user can authenticate to SSRS.
Other options are outlined here: Integrating Reporting Services into Applications
The most useful one is SSRS URL Access.

reports using ssrs from JIRA

I am looking for way to build reports using SSRS from JIRA if that is not possible I am okay moving the data from Jira to a SQL DB utilizing SSIS. I am new to Jira and REST API. Connecting directly to the Jira back end Database is not an option
The jira api currently only supports JSON. so your best bet is to either build a custom reporting services extension to handle JSON as a data source or create a webservice that passes through the json calls and converts the results to xml which SSRS will be able to handle.
while both of these sound difficult depending on your requirements may only take a few lines of C# code:
there also seem to be a few 3rd party options but I haven't tried them

Client-accessible noSql database?

Im building a simple angular application and there is a small administrator panel for updating the content (a .json document). I'm looking for a way to edit the json document from the administrator panel.
I can manipulate the memory-loaded json but I can't save it. Is there a way to put the json file in some kind of cloud database and connect to it without setting up a server or backend for my application?
I want my application to be easily deployable on any ftp so I can't setup a nodeserver or install something like couchdb.
Any ideas are appreciated.
You could use a provider like Parse. It's free (up to a limit of requests/month), has a nice JavaScript SDK that would get you up and running quickly. https://parse.com/
Also, check out this query builder to aid in retrieving your data from Parse. It's built as an Angular service for easy integration. https://github.com/dpollot/parse-query
EDIT
Parse also offers hosting, for free.

Sharepoint as a CMS

I am looking at using Sharepoint as a CMS for my WPF application, I was hoping to create some kind of a repository and access that using .NET web services. The repository would simply be some images and perhaps some meta-data about the images (name, description, etc...)
Im am stuck to Sharepoint, so another system is not really an option.
Does anyone have any links or experience with this?
Im not a newbie to Sharepoint, I just cannot find anything on what versions to use, if I need plugins, security, how to go about it in general.
You can do this with the free version of SharePoint (SharePoint Foundation, formerly Windows SharePoint Services) that comes with Windows Server--no plugins required.
If you simply want to store the images in SharePoint you can upload them to a Document Library via a web service call. If you want to be able to view the images directly in SharePoint use a Picture Library instead. As you can see in the list of SharePoint 3.0 web services you can work with both Document and Picture Libraries. You could even have the WPF application create the libraries if need be.
As Henrico points out in Storing Images on Sharepoint you'll want to consider whether to store the image file itself in SharePoint or have the file elsewhere and use SharePoint to store the path. His post also points out some other considerations on storing images in SharePoint. Note that his post refers to using SharePoint directly, but the same considerations apply.
I'm not sure what to say about security, since SharePoint supports authorization and authentication with its normal web interface and with web services.
I once used a hosted version of SharePoint to store PDFs uploaded from a command line application that were then viewed by a separate application. It worked great for my needs.

Web Analytics & Stats

We want to add tracking statistics to a web application we are building but are pretty unsure of how to go about it. (i.e. clicks, pageviews, unique visits etc)
Does anyone have any articles on the best way to go about incorporating tracking data into an application ? i.e. javascript tracking or IIS etc ?
We want to add tracking in as a ASP.NET MVC module - but we are unsure as to the best way to actually get the data and essentially 'track' this information ?
If anyone could help out - much appreciated.
Edit: just to be clear, we want to do this in-house and present the stats to our users as an additional fee module?
You can turn on the logging for IIS and then use the SQL Server Report Server Pack for IIS. It comes with many canned reports for your sites stats and then you could take it from there with your own custom reports.
You could also just use log parser to get the stats into a SQL Server DB and then you could use SQL from their to analyse and roll your own app.
Either way, you could modularize this and sell it as an add-on to your customer base.
You could use Piwik, you just need PHP version 5.1.3 or greater and MySQL version 4.1 or greater. As they say in their website, "Piwik aims to be an open source alternative to Google Analytics."
They have a demo on the official website so you can see if it's what you're looking for.
Google analytics is a popular service. You just insert a bit of javascript on every page that contains your sites name and Google tracks the data and provides all the report on a handy web based dashboard.
It's not an ASP.net MVC module like what you mentioned, but it will certain track stats for you and will be a lot simpler to set up than trying to code or integrate anything yourselves.
I'd look at analytics to begin with and only branch out to something more complex if it doesn't meet your requirements.
klabranche provided a holistic answer in terms of using logs of web server. I think using web server log is a a great way to analyse data of your web application.
That being said, depend on your web application and the scope of your analytics, just relay on web server log is not a good way to.
As you may know, web log does not record users behaviors like clicking certain tabs which may not trigger a web server request. Obviously your web log has no idea whether users clicked that tab or not, this may hurt your analyse.
Another you need to know is browser cache, this may create another black hole in your data.
RECAP
If you want to do a holistic analytics, you need to use two approaches, one is JavaScrip tag, another one is web log. Since both of them have shortages, combining them together will give you a complete picture.
Hope this helps

Resources