Variable usage in java code (JRXML file)

0

Hi, I would like to use variables in java code. I wanted to realise this kind of code:

    <variable name="abu"  class="java.lang.String" resetType="None">
        <variableExpression><![CDATA[SimpleDateFormat]]></variableExpression>
    </variable>
<textFieldExpression><![CDATA[ new $V{abu}("MM/dd/yy").format($F{CLIENT_BIRTHDATE})]]></textFieldExpression></textField>

Please guide me :)

puniaze's picture
Joined: Mar 23 2020 - 6:57am
Last seen: 6 months 6 days ago

0 Answers:

No answers yet
Feedback
randomness