garyvass Posted November 2, 2021 Share Posted November 2, 2021 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 More sharing options...
yama818 Posted November 7, 2021 Share Posted November 7, 2021 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 questionFor 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 ReportUnitsA sample of the simplest way to write a URLhttp://<host>:<port>/<context>/flow.html?_flowId=viewReportFlow&reportUnit=/public/Samples/Reports/SalesByMonthReport- Answer to the second questionFor 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 More sharing options...
garyvass Posted December 9, 2021 Author Share Posted December 9, 2021 yama818,That was helpful.. I was able to extrapolate the format I needed... thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now