I am using Cuba 6.10.20 and reports add-on to create a Jasper report.
I got this error
“com.haulmont.reports.exception.ReportingException: Error formatting jasper report: Errors were encountered when compiling report expressions class file: 1. The method dataset(String) is undefined for the type String”
and the code line is similar to the following
I’ve just downloaded the sample mentioned in the documentation, upgraded it to the latest CUBA 7.2.20 and followed the steps from the manual. Everything worked fine.
I am using Cuba 6.10.20 as already specified and I got the error reported above.
The example is also in the manual of Cuba 6.10.20 (Manual 6.10) so it should work.
Could you try with Cuba 6.10.20?