[color=# FF40] My report [/color]
I created a query (
select sequencial, nome, ... from MINHA_TABELA where sequencial = '1'
), after that, I organized the fields in the Report, I did the tests, filtered the NR 1 record, everything went well, as expected ...I compiled and climbed the .Jasper file to my repository.
[color=# FF0040] My Apex application [/color]
I am using Apex 19.2, I created a page, on a button I add the following code To call the report:
var report_server = "http://jasper.maxapex.net:8090/JasperReportsIntegration/report?_repName=INFO-ADMINISTRATIVO/rel2&_repFormat=html&_dataSource=INFO-ADMINISTRATIVO_1394"
var report_name = "rel2";
var report_format = "pdf";
var data_source = "default";
var run_report = ""+report_server+"&_repName="+report_name+"&_repFormat="+report_format+"&_dataSource="+data_source+"";
window.open(run_report);
At the moment I compiled The report I needed to take the WHERE, otherwise I would get locked on the code = 1, according to my test.
My question is: How do I enter the WHERE into my SELECT, in the report, and the above code, do I need to pass the parameter to the report of the report ??
I found an example, as between parentheses ([color=# 0000ff] sequential = $ p {code} [/color]), I wanted a help of how to do this, both in the report and In Apex, on the call pass the parameter ...
In the same report, I need to insert an image that is saved in registration, like blob ... whenever I inform The BLOB field in the report of the report gives an error message, I watched a few videos about insert "blob" image in jasper, however, does not appear the same path and I can not see the image in the report, does anyone have a tip ??
could have two output, I use this image saved in the database, or I use the status image, because I went up to my repository ... Anyone, serves me
Thanks