conditional styling does not apply

0

I have to show in red the highest amount in a client invoice and with green the lowest amount.

I have two variables min and max :

max=MAX($F{total})
min=MIN($F{total})

I have:

<conditionalStyle>
            <conditionExpression><![CDATA[$F{total}==$V{max_price}]]></conditionExpression>
            <style forecolor="#F2384D" backcolor="#F02222"/>
        </conditionalStyle>
        <conditionalStyle>
            <conditionExpression><![CDATA[$F{total}==$V{min_price}]]></conditionExpression>
            <style forecolor="#16FA81"/>
        </conditionalStyle>

But the style does not apply. It shows all fields in red.


When I put a text field with min and max variables ,they get the value of the total field and it changes.
So the variables keep changing values.

clayjon's picture
Joined: Apr 23 2021 - 6:04am
Last seen: 9 hours 39 min ago

1 Answer:

0

You have to remove forcolor and backcolor tag from your  text field
then it will work fine

 

 

mahadiosb's picture
Joined: Jan 24 2020 - 6:53am
Last seen: 12 hours 39 min ago
Feedback