How to create a report using jaspersoft android SDK and its UI widgets?

Hi All,

I am trying to create a project to display Jasper reports on android device. I would like to know how to integrate the JasperSoft SDK with android project and create a sample report. I am aware on how to invoke a report from the server and display it as a html or any other format. I would like to know how to create a UI component in android device with the report that is fetched from Jasper server. Could you please provide a simple activity to do attain this. Sample code will be of great help. 

Regards,

kumarjee Alluri

kumarji.alluri's picture
Joined: Oct 19 2012 - 4:08am
Last seen: 10 years 4 months ago

3 Answers:

The releases for Jaspersoft Mobile SDK for Android are posted here:

http://community.jaspersoft.com/project/mobile-sdk-android/releases

There is an Install Guide that should have all info about how to use it.

Let us know if you are having issues finding or using this SDK.

I'm not sure exactly what you mean by "UI Component ... with report which is fetched from Jasperserver".  For an example of what we do in our app, you could download the source for our JasperMobile application from here:

http://community.jaspersoft.com/project/jaspermobile-android/releases

Regards,
-Veronica

 

vbykin's picture
492
Joined: May 21 2009 - 5:30pm
Last seen: 9 years 9 months ago
Thanks veronica for your replay. Could you let me know how to invoke a report I have created in the Jasper server in my local. Here is my sample to code to invoke the count of reports in my local server that I have setup in my local machine. I am able to fetch the names of reports in the location, but I am not sure how to invoke a report and fetch the content of the report. profile=new JsServerProfile(null,"Sample","http://192.168.2.2:9090/jasperserver-pro",null,"jasperadmin","jasperadmin"); client.setServerProfile(profile); List list= client.getResourcesList("/reports/samples"); Log.d("Reports Count",Integer.toString(list.size())); This is giving me count of reports. I want to invoke a particular report from the server. Could you give the code and documentation details from where I could get the information. The Rest service documentation is not of much help for actual implementation. Regards, kumarjee Alluri
kumarji.alluri - 10 years 4 months ago

Thanks veronica for your replay. Could you let me know how to invoke a report I have created in the Jasper server in my local. Here is my sample to code to invoke the count of reports in my local server that I have setup in my local machine. I am able to fetch the names of reports in the location, but I am not sure how to invoke a report and fetch the content of the report.

profile=new JsServerProfile(null,"Sample","http://192.168.2.2:9090/jasperserver-pro",null,"jasperadmin","jasperadmin"); client.setServerProfile(profile);

List list= client.getResourcesList("/reports/samples");

Log.d("Reports Count",Integer.toString(list.size()));

 

This is giving me count of reports. I want to invoke a particular report from the server. Could you give the code and documentation details from where I could get the information. The Rest service documentation is not of much help for actual implementation.

Regards, kumarjee Alluri

kumarji.alluri's picture
Joined: Oct 19 2012 - 4:08am
Last seen: 10 years 4 months ago

Dear Veronica,

Kindly help us to view a report from our jasperserver in our Mobile Application Please guide us with the exact use of 

generateReportUrl(String, List<ReportParameter>)

Thanks kumarjee Alluri,

Even I am able to list the reports placed in the server and need  help in to view/render the report in my mobile device .

 

 

 

 

 

aravintz's picture
Joined: Dec 29 2013 - 9:02am
Last seen: 9 years 2 months ago
Feedback
randomness