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

tonyy

Members
  • Posts

    20
  • Joined

  • Last visited

tonyy's Achievements

Explorer

Explorer (4/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. I have tried to install missing library, but there is no longer jasperreports-htmlcomponent-5.0.1.jar for the latest versions like 5.6.0.
  2. This question was asked 8 years ago... however no solution proposed I hope something has changed. I want to retrieve values from each dataset of every chart, then agreggate it and make it available to chart customizer. So I need a way to freely be able to access main report parameters from different datasets and vice versa(access datasets parameters from main report). To jasper developers: how could you forget about colour consistency across multiple charts? Enterprise uber critical requirement! You possible now realise what I am trying to do and how painful it is.
  3. I was only able to get debugging working for customizers and scriptlets. Where you create a simple maven project for each and import slf4j(don't use log4j it is old). Then whenever Jasper hits the customizers/scriptlets it will hit your logger and print the output in the workspace log. Something like: /Users/<Username>/Documents/workspace-sts-3.5.0.M2/.metadata/.log Of course that will only work for you custom defined java code base. Keep in mind that JasperSoft Studio is JRXML lover, so massive amount of abstraction and inability to do many complex tasks(try to display consistently the colours across multiple charts in the composite report without Jasper Library API). Will be very interested in complete debugging solution.
  4. <reportExecutionRequest> <reportUnitUri>/supermart/details/CustomerDetailReport</reportUnitUri> <async>true</async> <freshData>false</freshData> <saveDataSnapshot>false</saveDataSnapshot> <outputFormat>html</outputFormat> <interactive>true</interactive> <ignorePagination>false</ignorePagination> <pages>1-5</pages> <parameters> <reportParameter name="someParameterName"> <value>value 1</value> <value>value 2</value> </reportParameter> <reportParameter name="someAnotherParameterName"> <value>another value</value> </reportParameter> </parameters> </reportExecutionRequest> This is XML listed in documentation, what is the equivalent for this in JSON? Online converters did not help , the requests with their resulting json could not be serialized on JasperServers. Particular complaint is about parameters. How nice to introduce XML example and omit JSON - Well Done Jasper Team! And thanks for not answering our questions you are so helpful.
  5. I believe your problem is merely json mapping which means you are getting close. There are online json parsers, have you tried to put what you send to JasperServer? I am pretty sure it will highlight syntax errors, I am using JacksonMapper for Java and it works quite nicely. I got similar messages when could not find suitable data structure when receiving JSON response. Yours is just the opposite. In short words JasperServer can't understand the JSON structure you are sending. Keep digging you are close.
  6. Changed Assigned User from - to @User_306070 I put emphasis that test connection works! However configuration does not save password... Puzzled how to publish reports now.
  7. After my comment I suggest you to do the following: try to include in your accept cookie header application/json , as their error messages contain detailed info regarding the problem in json response. Also whenever you try to create new resource dont forget that you need to create custom type namely application/repository.reportUnit+json - cant remember exactly(see the doc) the syntax but this is mandatory. Also dont undermine the power of rest client like Cocoa rest client (if using mac) where you can test what you are doing quite easily. Finally, dont attempt to create local resources unless you are 100% sure you won't need to reuse that dataSource in other reports. From what I found it you cannot reference local resources from reports.(but i am asking here whether my assumption is correct on daily basis).
  8. I believe jasper support team is either too busy or don't care about the product anymore. I am having the problem with getting answers to my question. Stackoverflow people point to go here. And here it is dead end. I can only suggest writing on daily basis. Their doc misses many fundamental hints without which we can't progress further.
  9. If you upload jrxml report from JasperSoft Studio to JasperServers then majority of resources will be located under hidden folder /report1_files/ - something like this. Is it possible to reuse these file resources(give reference to them) in another report via rest? Whenever I specify the path to these hidden resources it say "invalid uri" , in documentation it says that this prefix denotes it is hidden resources so whenever I specify this directory as reference in other reports - JasperServer cannot find them? So workflow is like this: 1. Create JRXML in JasperStudio 2. Upload it via plugin to JasperServer with "report1" name. 3. Create another report named "report2" in JasperServer(REST or GUI does not matter). 4. Point report2(REST PUT report2) to the hidden resources(via references to /report1_files/) of the report1 - here we get invalid uri, HOWEVER if we ovewrite existing report1 with itself, then it magically recognises resources under this directory. PLEASE HELP.
  10. The problem is that i dont want to extract the whole reportunit descriptor to overwrite it completely but just to patch nested references like for dataSource/Query? Is that possible to do with PATCH? Thanks,
  11. Context : REST API ; JasperServers; JasperSoft Studio Say I upload jrxml from jasperstudio to jasperserver. The server will generate hidden directory like reportname_files/ with resources inside . Whenever I try to reference these resources from the reportUnits of other reports it tells me that: "message" : "The value "/reports/Coffee_files/main_jrxml" for parameter "resourceReference.uri" is invalid.", My directory is correct that is I am sure ( 2 weeks on REST API ... trust me there is no mistake here, besides same directory works on the PUT update request for the original report which directory belongs to).
  12. How to retrieve queryString from JRXML via REST and save it in JasperReport server as a query resource?
  13. At the moment the only way I see to execute tailrored query is to: 1. Apply PATCH method to existing report parameters ( which in turn are used by query) E.G. In report unit default CustomerId = 0, we send patch values which change existing parameters to say CustomerId=5 which in turn changes query WHERE clause. 2. Then I ask for report unit execution. This however invites troubles for dirty reads etc. when multiple clients try to do these two operations. Question is whether this is the only way and whether there is better approach.
  14. I would like to reuse existing jrxml file to create new reportUnit. But whenever i put reference for existing jrxml file I get error message. <errorDescriptor> <errorCode>illegal.parameter.value.error</errorCode> <message>The value "/reports/CustomersReport_files/CustomersReport" for parameter "resourceReference.uri" is invalid.</message> <parameters> <parameter>resourceReference.uri</parameter> <parameter>/reports/CustomersReport_files/CustomersReport</parameter> </parameters> </errorDescriptor> for http://host/jasperserver/rest_v2/resources/reports/CustomersReport2
×
×
  • Create New...