How to change expression use in jaspersoft?

Stimulsoft Ultimate discussion
Post Reply
s0930204
Posts: 3
Joined: Fri Aug 05, 2022 12:57 am

How to change expression use in jaspersoft?

Post by s0930204 »

I want to change my jasper report to stimulsoft report
How to change this expression ?

Code: Select all

(new Float($F{A}.floatValue()*$F{B}.floatValue())).toString().equals("Infinity")?new Float(0):
(new Float($F{A}.floatValue()*$F{B}.floatValue())).toString().equals("NaN")?new Float(0):
(new Float($F{A}.floatValue()*$F{B}.floatValue()))
I try many times but it doesn't work in stimulsoft
Lech Kulikowski
Posts: 4754
Joined: Tue Mar 20, 2018 5:34 am

Re: How to change expression use in jaspersoft?

Post by Lech Kulikowski »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?
What does that expression mean in the jasper report?

Thank you.
s0930204
Posts: 3
Joined: Fri Aug 05, 2022 12:57 am

Re: How to change expression use in jaspersoft?

Post by s0930204 »

I want to write the same expression as jasper report in stimulsoft text expression
Attachments
1660006740650.jpg
1660006740650.jpg (254.33 KiB) Viewed 61 times
1660006760978.jpg
1660006760978.jpg (69.72 KiB) Viewed 61 times
Lech Kulikowski
Posts: 4754
Joined: Tue Mar 20, 2018 5:34 am

Re: How to change expression use in jaspersoft?

Post by Lech Kulikowski »

Hello,

We do not know jasper's expressions.
Could you explain your issue in more detail? What does that expression mean in the jasper report?

Thank you.
s0930204
Posts: 3
Joined: Fri Aug 05, 2022 12:57 am

Re: How to change expression use in jaspersoft?

Post by s0930204 »

The expression of jasper report is like the text expression of stimulsoft report.
And it's using java language.
Lech Kulikowski
Posts: 4754
Joined: Tue Mar 20, 2018 5:34 am

Re: How to change expression use in jaspersoft?

Post by Lech Kulikowski »

Hello,

You can use calculations in the expression as you need:
{datasourceName.columnName1 * datasourceName.columnName2 + datasourceName.columnName3 - ....}
https://www.stimulsoft.com/en/documenta ... er-manual/

Thank you.
Post Reply