rafkacz1
-
Posts
3 -
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
Posts posted by rafkacz1
-
-
Hi,
I've a problem with html output export using rest_v2 service.
In reportExecutionRequest structure i try to set attachmentsPrefix but with no result.
Generated output html file still uses default attachment location :
<img src="/jasperserver/rest_v2/reportExecutions/105352832_1406503405410_76/exports/html/attachments/img_0_9_0" style="height: 300px" alt="" title="Meter Chart"/>
It makes viewing report output in offline mode impossible...
Is there any way to change it?
Regards
Rafał
-
Hi, I've just succesfully get JSON reportExecutionRequest structure send.
You are rigth - there are no good examples for JSON - but it is possible to decompile jar files and see class definitions used by server....
{"reportUnitUri":"/reports/fait/pracownicy","async":true,"freshData":true,"saveDataSnapshot":false,"outputFormat":"pdf","interactive":false,"ignorePagination":true,"pages":null,"parameters":{"reportParameter":[{"name":"Parameter1","value":["a"]}]}}C# wrapper class of it:public class ReportParameter{public String name { get; set; }public List<String> value { get; set; }}public class ReportParameters{public List<ReportParameter> reportParameter { get; set; }}public class reportExecutionRequest{public string reportUnitUri { get; set; }public bool async { get; set; }public bool freshData { get; set; }public bool saveDataSnapshot { get; set; }public string outputFormat { get; set; }public bool interactive { get; set; }public bool ignorePagination { get; set; }public string pages { get; set; } //1-5public ReportParameters parameters { get; set; }}Regards,Rafal
jasper server REST_V2/reportExecutions attachmentsPrefix
in Products
Posted