Please help.....
Trying to get parameter names via code from textFieldExpression in jasper using ACTIVE and PASSIVE values as ways to set the range Axis of a bar graph.
Source Code:
<textField> <reportElement x="48" y="115" width="194" height="40" uuid="2fdcac5d-da8c-433f-ac73-0e4b8e33106c"> <property name="com.jaspersoft.studio.unit.y" value="pixel"/> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> </reportElement> <textElement> <font size="24" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{ACTIVE}+"%"]]></textFieldExpression> </textField> <staticText> <reportElement x="120" y="129" width="100" height="24" uuid="39df067b-26ff-4e9d-bcdd-2ae303a74923"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> </reportElement> <textElement> <font size="12"/> </textElement> <text><![CDATA[ACTIVE]]></text> </staticText> <textField> <reportElement x="50" y="394" width="202" height="42" uuid="4d541de8-2f83-42da-880b-4c65f1716d23"> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement> <font size="24" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{PASSIVE}+"%"]]></textFieldExpression> </textField> <staticText> <reportElement x="122" y="406" width="90" height="30" uuid="df600b3a-155f-4432-a624-bde54da62801"> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="com.jaspersoft.studio.unit.y" value="px"/> </reportElement> <textElement> <font size="12"/> </textElement> <text><![CDATA[PASSIVE]]></text> </staticText>
Java:
jrChart.getPropertiesMap().getProperty("ACTIVE");
rangeAxis.setRange(0, jrChart.getPropertiesMap().getProperty("ACTIVE"));