I am experiencing a problem while compiling a jrxml with a column name having a dollar ($) sign. I guess this sign is a keyword of Jasper Report to represent a variable. In the case of servoy, dollar sign is used for naming Relations due to certain coding convention. There is a conflict in the usage of the sign so when I try to compile the following error is displayed:
net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, my_jrxml_001_1283497414671_244426: 46: unexpected token: field_object_to_object46object_to_object @ line 46, column 25. 1 error
at net.sf.jasperreports.compilers.JRGroovyCompiler.compileUnits(JRGroovyCompiler.java:88)
at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:188)
…
Does Servoy have a way to handle this or should we just change all our Relations with dollar($) sign to a certain keyword?
You need to check if there is some dollar-escaping in the jrxml-format possible.
Try orders$$order_lines or orders$order_lines or orders\$order_lines.
If that works, the jasper_reports plugin just receives the relation name with the $ sign.
If that does not work how could the servoy jasper report plugin get to the correct relation name?
Do some renaming (convert orders!order_line to orders$order_lines)?
That looks ugly.