johnokrasa
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Posts posted by johnokrasa
-
-
not sure what u mean "included the jar file in the manifest classpath of the actual jasper helper ejb "
I'm using netBeans...
I'm trying hard to get this chart.jrxml to be compiled.
It can't find the scriptlet class in full path "org.springframework.webflow.samples.jasper.JFreeChartScriptlet" or anything I can think of trying
as in jrxml...
<?xml version="1.0" encoding="UTF-8"?>
<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="chart" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" scriptletClass="org.springframework.webflow.samples.jasper.JFreeChartScriptlet">
<parameter name="pieDS" class="org.jfree.data.general.DefaultPieDataset" isForPrompting="false"/>
<field name="name" class="java.lang.String"/>
<field name="value" class="java.lang.Double"/>
<variable name="chart1" class="net.sf.jasperreports.engine.JRRenderable"/>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band splitType="Stretch"/>
</title>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band splitType="Stretch"/>
</columnHeader>
<detail>
<band height="207" splitType="Stretch">
<image scaleImage="Clip" hAlign="Center" vAlign="Middle" isLazy="true">
<reportElement key="chart1" mode="Transparent" x="0" y="15" width="327" height="175"/>
<imageExpression class="net.sf.jasperreports.engine.JRRenderable"><![CDATA[$V{chart1}]]></imageExpression>
</image>
</band>
</detail>
<columnFooter>
<band splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band splitType="Stretch"/>
</pageFooter>
<summary>
<band splitType="Stretch"/>
</summary>
</jasperReport>
tried everything towards including the class (add folder to nbeans project libs, add class as jar to nbeans project libs) nothing works.
Is there some system enviroment to be set such as %JASPER_HOME%
or something to set as jasper.compile.path or ???
Please Help!
Charts DefaultPieDataSet
in Products
Posted
I'm using netbeans plugin...
using a scriplet will not compile, Class not found in every config (is there some %JASPER_HOME% system var to set or something?)
so....
DefaultPieDataset ds1 = new DefaultPieDataset();
Vector vectPie = getPieData();
for(int x=0; x< vectPie.size(); x++){
PieData pData = (PieData)vectPie.get(x);
String name = pData.getAname();
if(name.length()>30){
name = name.substring(0,30);
}
double value = pData.getAvalue();
ds1.setValue(name,value);
}
model.put("pieDS", ds1);
but how to get this parameter and set data in the chart?
If you use a subDataSet it wants a query or javabean (here again the classpath problem)
this is it's setting as netbeans plugin..
I suppose this will create problems!?
I'm using jasper ver. 3.6.0
How do I get the data to the chart with running a query, in a pieDataSet?
Thanks,
John