Jasper_crosstab_Parameter_Crosstab Header
corsstab:
Q : how to show filed value at crosstab Header Part?
A : via pass parameter in crosstab.
i.e : show filed 'Group_Header' vaule in crosstab header part. need to add a parameter in crosstab band.
summary:
<crosstabParameter name="P_Group_Header"> <parameterValueExpression><![CDATA[$F{Group_Header}]]></parameterValueExpression> </crosstabParameter>
detail:
<summary> <band height="200"> <crosstab> <reportElement x="0" y="0" width="3960" height="200" uuid="a1f028a0-03f0-452e-bc7b-6f91ea72acb8"> <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/> <property name="com.jaspersoft.studio.unit.y" value="pixel"/> <property name="net.sf.jasperreports.export.headertoolbar.table.name" value=""/> </reportElement> <crosstabParameter name="P_Group_Header"> <parameterValueExpression><![CDATA[$F{Group_Header}]]></parameterValueExpression> </crosstabParameter> <crosstabHeaderCell> <cellContents> <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/> <textField> <reportElement isPrintRepeatedValues="false" mode="Opaque" x="0" y="0" width="690" height="40" uuid="50958c93-df4d-4a77-8059-9b3c3dffb2b1"/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="14" isBold="true"/> <paragraph leftIndent="4"/> </textElement> <textFieldExpression><![CDATA[$P{P_Group_Header}]]></textFieldExpression> </textField>