If Else not working in new version

Stimulsoft Reports.JAVA discussion
Post Reply
marie
Posts: 5
Joined: Fri Feb 08, 2019 11:49 am

If Else not working in new version

Post by marie »

Hi,

Following Expression : {(DataBand.EV_ID==null ? DataBand.OPP_TYPE : DataBand.EV_TYPE)} has worked fine in Flex version of Stimulsoft.

The same expression renders blank in version 2019.2.3 based on Java.

Can you please help?

Thanks.
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: If Else not working in new version

Post by Lech Kulikowski »

Hello,

You can use the IIF() function:
{IIF(DataBand.EV_ID==null, DataBand.OPP_TYPE, DataBand.EV_TYPE)}

Thank you.
marie
Posts: 5
Joined: Fri Feb 08, 2019 11:49 am

Re: If Else not working in new version

Post by marie »

Thank you, Lech.

This works (I had tried Length() too - which had worked as well), but I have multiple reports across clients which uses {(Column1==null ? Column2 : Column1)}. Can't the original expression work?
Appreciate your help on this.
marie
Posts: 5
Joined: Fri Feb 08, 2019 11:49 am

Re: If Else not working in new version

Post by marie »

Also, can you please let me know the reason original expression is not supported in Java version?
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: If Else not working in new version

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data which reproduces the issue for analysis.

Thank you.
Post Reply