Working with AbJasperReport, I found a problem that I have not found the solution.
This is the variable that causes the problem in jrxml file:
Here's the log:
Could it be that in AbJasperReport do not instantiate the jasperreports-functions-6.2.0.jar file?
thank you
This is the variable that causes the problem in jrxml file:
B4X:
IF($F{TipoAttivita}.equals("F"),"Versamento", IF($F{TipoAttivita}.equals("P"),"Prelievo","Incasso"))
Here's the log:
net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
1. The method IF(boolean, String, String) is undefined for the type Report32Gestione32Cassetto_1471856452334_982522
value = IF(((java.lang.String)field_TipoAttivita.getValue()).equals("F"),"Versamento", IF(((java.lang.String)field_TipoAttivita.getValue()).equals("P"),"Prelievo","Incasso")); //$JR_EXPR_ID=12$
<>
2. The method IF(boolean, float, Float) is undefined for the type Report32Gestione32Cassetto_1471856452334_982522
value = IF(((java.lang.String)field_TipoAttivita.getValue()).equals("P"),(-1*((java.lang.Float)field_Importo.getValue())),((java.lang.Float)field_Importo.getValue())); //$JR_EXPR_ID=14$
<>
3. The method IF(boolean, String, String) is undefined for the type Report32Gestione32Cassetto_1471856452334_982522
value = IF(((java.lang.String)field_TipoAttivita.getOldValue()).equals("F"),"Versamento", IF(((java.lang.String)field_TipoAttivita.getOldValue()).equals("P"),"Prelievo","Incasso")); //$JR_EXPR_ID=12$
<>
4. The method IF(boolean, float, Float) is undefined for the type Report32Gestione32Cassetto_1471856452334_982522
value = IF(((java.lang.String)field_TipoAttivita.getOldValue()).equals("P"),(-1*((java.lang.Float)field_Importo.getOldValue())),((java.lang.Float)field_Importo.getOldValue())); //$JR_EXPR_ID=14$
<>
5. The method IF(boolean, String, String) is undefined for the type Report32Gestione32Cassetto_1471856452334_982522
value = IF(((java.lang.String)field_TipoAttivita.getValue()).equals("F"),"Versamento", IF(((java.lang.String)field_TipoAttivita.getValue()).equals("P"),"Prelievo","Incasso")); //$JR_EXPR_ID=12$
<>
6. The method IF(boolean, float, Float) is undefined for the type Report32Gestione32Cassetto_1471856452334_982522
value = IF(((java.lang.String)field_TipoAttivita.getValue()).equals("P"),(-1*((java.lang.Float)field_Importo.getValue())),((java.lang.Float)field_Importo.getValue())); //$JR_EXPR_ID=14$
<>
6 errors
Could it be that in AbJasperReport do not instantiate the jasperreports-functions-6.2.0.jar file?
thank you