March 27, 2023, 3:08pm
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
The same error is generated by running the example in the Cuba Report guide, BookAvailability.jrxml.
where Data is defined as
<field name="literature_type_name" class="java.lang.String"/>
<field name="books_instances_amount" class="java.lang.Long"/>
<field name="reference_books_instances_amount" class="java.lang.Long"/>
What’s the problem? Which kind of param does the “dataset” function accept?
April 11, 2023, 2:24pm
I am having the same problem for the past few days
Need some help
(Gian Maria Delogu)
April 12, 2023, 11:53am
Did you find any solution? I have the same problem trying to run the example.
April 12, 2023, 2:42pm
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.
April 12, 2023, 3:33pm
I am using Cuba 6.10.20
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?
Thanks a lot,
do you have any idea of the problem?
May 10, 2023, 12:36pm
May 16, 2023, 1:58pm
Tryed sample project on CUBA 6.10.20. Followed the steps from the manual - it works fine.
Can you provide us some demo project with this issue?