Jump to content
We've recently updated our Privacy Statement, available here ×

florian.weihl

Members
  • Posts

    6
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Everything posted by florian.weihl

  1. I saw that one too, but this only set's the values, in a predefined list, as selected. However I figured out how I can change the list items. Each report has, apperently, its own resources and for list parameters which are defined like in the picture below, then jasper generates invisible files for them. These files can be accessed via the following request http://<<Jasper-IP>>/jasperserver/rest_v2/resources/reports/<<REPORT_NAME>>_files/<<PARAMETER_NAME>>_files/<<PARAMETER_NAME>> Within the header the parameter "Content-Type" needs to be set to "application/repository.listOfValues+json" or "application/repository.listOfValues+xml" With the PUT - method a body like this { "label": "lov_<<PARAMETER_NAME>>", "version": 0, "type": 6, "items": [ {"label": "test3", "value": "25626"} ] } you can change the values of the list parameter :) BUT the version number must be the same as the one from the the jasperserver. Each time you change at least one list properties the jasperserver increments this version number by 1. Thank you so much for your time and help :)
  2. Yes, thank you! I also figured that one out yesterday evening :D But that one keeped me thinking... Is there anyway I can change the accapted values of a list via REST? I thought I could do it over the options - service, but that one is not available for me for some reasons.
  3. I know this is a pretty old problem, but I'm currently facing the same problem with Jaseper Version 7.8.0. Even if I pass multiple values to my collection it wont work and resolves in an error. Can anybody help? I've already created an articel ( https://community.jaspersoft.com/questions/1186721/report-parameter-list)
  4. I've found this articel https://community.jaspersoft.com/questions/1113731/collections-and-rest-api-urls But event if I try it, like they suggest, it wont work.
  5. Hi, thanks for the quick response. I set the nested type to be an integer, but that didn't work. Let me try to explain it a little bit diffrent. I defined my list list this <parameter name="PARAMETER_TYPES" class="java.util.List" nestedType="java.lang.Integer"/> It does not have any defined list items, since I want them to be dynamic (depending on the value of another parameter). If I define entries for my list, then it works like a charm and I can make the REST call without any problems. But I want the list to be able to accept any values. Best regards
  6. Hi there, I'm currently facing the issus that I cannot send my defined list parameter via REST query. The report displays only the parameter values and I call the report with this request: http://localhost:8080/jasperserver/rest_v2/reports/reports/PARAMETRERTEST.html?PARAMETER_TYPES=26117&PARAMETER_TYPES=26118 The requests works fine, but the report wont display my passed list items. My list is currently not filled with any values, since it will be depentend on another input field. If this is possible, which I don't know. Can someone help me with this issue? Thanks in advance
×
×
  • Create New...