Jump to content
Changes to the Jaspersoft community edition download ×

Jaspersoft 6.1 HTML 5 chart fails, when dataset returns zero rows.


Areport

Recommended Posts

Hello, 

in the new jaspersoft 6.1 it is not possible to view HTML 5 charts, if the corresponding data set returns 0 rows.

In that case the loading popup of the JasperReport Server doesn't disappear because of an JavaScript error.

Uncaught TypeError: Cannot read property 'length' of undefined

These reports were working in JS 6.0. 

Is there any "No Data" porperty for charts? Or is it bug in JS 6.1?

Best regards

Link to comment
Share on other sites

  • 2 months later...
  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...
  • 1 month later...
  • 5 weeks later...
  • 3 months later...

Solution for the Issue "when dataset returns zero rows."

Hi Everyone , There is a Issue with Jasper HTML 5 chart in  Clarity 14.3 version .
ISSUE:-  When you run a Report  which has PIE Chart but the select Project dosent has Data in it , it means PIE chart has Zero Records then The Report will continously show "Please Wait" Loading Window, this wont stop untill you click on cancel.

Solution for this Issue :-

1)Use your HTML 5 Chart in sub report

2) Put some Print when Expression on the Report ( like ex:- $F{ProjectID} !=null ) , so when there are no records your PIE wont appear in the report

I have faced the Issue in 14.3 , after Implementing above Solution to my PIE Chart , now its working for me

Hope this helps all.

Regards,
Santosh
 

Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...