jyka.saario Posted October 24, 2017 Share Posted October 24, 2017 Hello! I’m struggling with REST API (v2). Here is my case: I need to pass parameters to my SQL query what uses SQL IN. I found several examples where this is explained. In Jasper Studio (latest version), my parameter is named as ID_ARR. Param class is set to java.util.Collection (have tried List as well). Only name & class is set for parameter. In SQL this is used like: where $X{IN, id, ID_ARR} All works like charm when I use preview in my Jasper Studio. Now I need to run this report via REST API request. This is URL for report: http://localhost:8080/rest_v2/reports/Reports/TestReport.pdf?interactive=true&onePagePerSheet=false&freshData=true&saveDataSnapshot=false&ID_ARR=1469&ID_ARR=1470&ID_ARR=1471&ID_ARR=1472&ID_ARR=1473 Report will be returned just fine, BUT ID_ARR variable remains always empty and all data is returned from table, so where IN is not executed at all? Any ideas what I’m doing wrong? I use latest JasperStudio & Jasper Server (6.4.0) Link to comment Share on other sites More sharing options...
andrew.brooks_1 Posted December 28, 2018 Share Posted December 28, 2018 Did you solve this issue? I'm currently having the same problem but getting an error as the crosstab in the report is too large with all the results.CheersAndrew Link to comment Share on other sites More sharing options...
aaron_17 Posted February 13, 2019 Share Posted February 13, 2019 Was this ever worked out... I have the EXACT same issue.... Andrew did you ever figure it out? Aaron Link to comment Share on other sites More sharing options...
anubha0408 Posted September 22, 2019 Share Posted September 22, 2019 hi All, I am having the same issue. Its working fine on JasperStudio but not on jasperserver. Has anyone resolved it ? RegardsAnubha 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