Page 1 of 1

If Else not working in new version

Posted: Mon Apr 08, 2019 3:04 pm
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.

Re: If Else not working in new version

Posted: Mon Apr 08, 2019 7:05 pm
by Lech Kulikowski
Hello,

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

Thank you.

Re: If Else not working in new version

Posted: Tue Apr 09, 2019 9:40 am
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.

Re: If Else not working in new version

Posted: Tue Apr 09, 2019 9:41 am
by marie
Also, can you please let me know the reason original expression is not supported in Java version?

Re: If Else not working in new version

Posted: Wed Apr 10, 2019 7:53 pm
by Lech Kulikowski
Hello,

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

Thank you.