james.stern Posted March 19, 2015 Share Posted March 19, 2015 Hello. Say I have a report with 3 parameters, p1, p2, and p3. Let's say p1 and p2 are Text but p3 is a Date. How do I define an inputControl for each of these parameters using REST V2? Also, I'd like to set the overwrite flag on each inputControl.The Web Services Guide explains how to give an inputControl a value once the inputControl exists but I don't understand how to create the inputControl. Is there a way to do this via REST V2 and JSON? If so, how?Thank you. Link to comment Share on other sites More sharing options...
tchen Posted March 20, 2015 Share Posted March 20, 2015 The report input control should be defined as parameter when you create a report template JRXML file, or as a filter when report is created from ad hoc view designer. Once the inoput control is defined in your report, you can reference it in your REST_V2 report service GET request as argument. For example:http://<host>:<port>/jasperserver[-pro]/rest_v2/reports/path/to/report.<format>?<arguments>Both date-only and timestamp fields used in the argument should be given in the ISO date-time format such as 1997-01-01T04:05:06+02:00. Please refer to TIBCO JASPERREPORTS® SERVER WEB SERVICES GUIDE RELEASE 6.0 for detail.Sample URL used in REST_V2 GET request:http://localhost:8080/jasperserver-pro/rest_v2/reports/your_report.html?p1=text1&p2=text2&p3=2015-03-19T00:00:00+08:00[/code] Link to comment Share on other sites More sharing options...
james.stern Posted March 24, 2015 Author Share Posted March 24, 2015 I appreciate the answer. Link to comment Share on other sites More sharing options...
kusher Posted January 18, 2018 Share Posted January 18, 2018 tchen - Does the rest_V2 allow for you to set parameters that are not input controls? This functionality seemed to work in the Jasper Server 3.5 with the original soap API. Link to comment Share on other sites More sharing options...
vinothm2k Posted January 8, 2019 Share Posted January 8, 2019 How to deploy JRXML file with input Control in JASPER REST V2. there is no api directly to POST . 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