Hello,
I'm using Jasper Report library 6.2.0 with PHP, so I deployed PHP/Java Bridge on Tomcat 7.
I tested it with a simple report and it worked. Then I moved to the final and more complex report and I got some issues.
To build the .jrxml I'm using Jasper Studio
1) First I discovered making some test with the same report, that to avoid problems when I run the report from php, I must use JAVA as language for expressions in the report
2) I converted my javascript expressions to java but when I insert these 2 variables in the report, It gives me an error when I try to run the report from php. If I remove them it works fine.
So I think there is some error inside the expressions
<variable name="tipo_pagamento" class="java.lang.String">
<variableExpression><![CDATA[IF($F{type} == "BB","Bonifico Bancario","Carta di credito")]]></variableExpression>
</variable>
<variable name="pagamento" class="java.lang.String">
<variableExpression><![CDATA[IF($F{type} == "BB",SUBSTITUTE($F{causale},"<br />",""),"Pagata - " + $F{transaction_id})]]></variableExpression>
</variable>