Jump to content
We've recently updated our Privacy Statement, available here ×

adding a html5 rendered gantt-widget from FusionCharts to a JS report


fm

Recommended Posts

Hello,

 

I am having trouble creating a report with a Gantt-Widget rendered with html5

After waiting for several minutes, I get the following error message: 

A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?

 

Steps taken:

1. At the tab Window>Preferences>Jaspersoft Studio>Properties add a new property with Property Name "com.jaspersoft.jasperreports.fusion.widgets.render.type" and Value "html5"

2. Create a blank new JS Report and add a Gantt-Chart type widget to the Summary band.

3. Move to the Preview tab to run the report and the error message will appear

 

Below see the jrxml text:

 

<?xml version="1.0" encoding="UTF-8"?>

<!-- Created with Jaspersoft Studio version 6.1.0.final using JasperReports Library version 6.1.0  -->

<!-- 2015-07-01T16:01:56 -->

<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Testreport01" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="673a143e-c337-4fc6-99e0-83eb4c2215f1">

<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>

<queryString>

<![CDATA[]]>

</queryString>

<background>

<band splitType="Stretch"/>

</background>

<title>

<band height="79" splitType="Stretch"/>

</title>

<summary>

<band height="309" splitType="Stretch">

<componentElement>

<reportElement x="152" y="79" width="250" height="150" uuid="c6794886-cdbe-40bd-a6c3-71bca782d2cb"/>

<fw:ganttChart xmlns:fw="http://jaspersoft.com/fusion" xsi:schemaLocation="http://jaspersoft.com/fusion http://jaspersoft.com/schema/fusion.xsd">

<fw:categorySet>

<fw:category>

<fw:startExpression><![CDATA[new SimpleDateFormat("yyyy-MM-dd").parse("2009-07-27")]]></fw:startExpression>

<fw:endExpression><![CDATA[new SimpleDateFormat("yyyy-MM-dd").parse("2009-08-27")]]></fw:endExpression>

<fw:labelExpression><![CDATA["Sample Category"]]></fw:labelExpression>

</fw:category>

</fw:categorySet>

<fw:tasks>

<fw:task>

<fw:idExpression><![CDATA["Task1"]]></fw:idExpression>

<fw:process>

<fw:idExpression><![CDATA["Task1-Process1"]]></fw:idExpression>

<fw:labelExpression><![CDATA["Sample Process"]]></fw:labelExpression>

</fw:process>

<fw:startExpression><![CDATA[new SimpleDateFormat("yyyy-MM-dd").parse("2009-07-27")]]></fw:startExpression>

<fw:endExpression><![CDATA[new SimpleDateFormat("yyyy-MM-dd").parse("2009-08-27")]]></fw:endExpression>

<fw:labelExpression><![CDATA["Sample Task"]]></fw:labelExpression>

</fw:task>

</fw:tasks>

</fw:ganttChart>

</componentElement>

</band>

</summary>

</jasperReport>

 


 

Any suggestions as to how to solve this problem would be most appreciated. Thanks in advance.

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...