Jump to content

how to generate / retrieve report from server


garyvass

Recommended Posts

I have looked over the documentation, and other sources but have still not figured out how to achieve what I need...  I have installed jasper server on our server.  I have written software, (it runs on the apache server that also houses jasperreports)  in Xojo (similar to visual basic) that is used to process payrolls.  I have created the reports and loaded it onto the jasper report server... I need the syntax to have my webserver generate and display the report that is called from the xojo program (again, running as a web app on the same server as jasperrepots) login, generate, and print the reports (paychecks) that are generated.

The payroll program is web-based; so, the request to generate/print the reports would be in the form of an HTTP request (URL). I don't understand the format from the examples of the HTTP request.

Also, is there a way to use the same report with different databases without having to have a separate data source file for each database?  For example, we have to print payrolls whose data resides in different databases, but use the same report template.

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I would like to begin by declaring that I may not understand your question.
Therefore, please understand that I may not be able to help you as an answer.


- Answer to the first question
For example, how to write the URL for report execution is described in the following manual.
https://community.jaspersoft.com/documentation/tibco-jasperreports-server-ultimate-guide/v790/repository-http-api
  -->Executing ReportUnits


A sample of the simplest way to write a URL

http://<host>:<port>/<context>/flow.html?_flowId=viewReportFlow&reportUnit=/public/Samples/Reports/SalesByMonthReport


- Answer to the second question
For example, I think it may be possible to achieve this by using the login user attribute.
Specifically, it is possible to change the database to connect to for each login user.

For details, please refer to the following manual.
https://community.jaspersoft.com/documentation/tibco-jasperreports-server-administrator-guide/v790/attributes-data-source-definitions

 

I hope this is useful to you.

 

 

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...