Open adummy832 opened 5 years ago
Hi @adummy832 i believe everything is correct, did you create the parameter in the report .jrxml? I recommend Jaspersoft Studio to manipulate your reports visually.
In you .jrxml you need create a parameter:
<parameter name="query" class="java.lang.String"/>
and pass your parameters to you report.
$P!{query}
thanks to to use PHPJasper.
First of all great work in this extension @geekcom, Really loving it! 🎉 Btw, how can i use some Raw SQL as a parameter to make a dynamic query inside a report.
I have the QUERY parameter defined directly in my report and using it as a queryString. I also edited the PhpJasper class on line 100 because BASH reads double-quoted commands and produces a ton of error.
Ran the latter command. It runs perfectly but generated a pdf without a single data.
But when i ran it on the JasperSoft software itself it generates the pdf perfectly with the QUERY parameter supplied directly. Is this some kind of a bug ? Am i missing something ? I have been on this for hours now. Hoping you could help. Thanks @geekcom