2

I am trying to use List into the jasper report using JasperSoft Studio, but while defining dataset the JRDataSource expression is showing as invalid even after casting REPORT_DATA_SOURCE to the JRXmlDataSource(find image below).

Expression

((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("/Header/FileName")

Error

The current expression is not valid. Please verify it!

Output

The error is looking so weird and I am not able understand it what is wrong here.

Petter Friberg
  • 21,252
  • 9
  • 60
  • 109
user3462473
  • 349
  • 4
  • 14

1 Answers1

3

Do not worry about it, this is a bug in the IDE.

If you can't close the expression editor, edit the expression manually in the xml view.

Petter Friberg
  • 21,252
  • 9
  • 60
  • 109