Page 1 of 1

How do you explain that? (IIF function doesn't work)

Posted: Tue Jan 06, 2015 7:58 pm
by Paulo Lemos
Hello, I'm new here, so sorry if I created this topic in the wrong session or something.

I have 2 problems as it follows:

1)
This works fine:
{IsLastPage == false ?"false" : "true"}

This doesn't work, and always print the word "false":
{IIF((IsLastPage == false), "false","true")}
this neither...
{IIF((IsLastPage), "true","false")}

Why?

2) I am trying some form of concatenating conditions without using the "Condition" option in "Properties". Is it possible to write something like this:

{IIF((IsLastPage == true && Data.TotalsNeedToBePrinted == true), "Totals are printed here", "Totals are in the LAST PAGE")}

Thanks in advance,

Re: How do you explain that? (IIF function doesn't work)

Posted: Thu Jan 08, 2015 1:18 pm
by Alex K.
Hello,

Sorry for the delay with responce.
We need some time for check the issue.

Thank you.

Re: How do you explain that? (IIF function doesn't work)

Posted: Thu Jan 08, 2015 5:28 pm
by Paulo Lemos
Waiting. Thank you.

Re: How do you explain that? (IIF function doesn't work)

Posted: Thu Jan 08, 2015 10:50 pm
by Ivan
Hello,

From our documentation, article "System Variables":
"IsLastPage - Returns true, if, in the current moment, the last page of a report is printed. For correct calculation of a variable it is required to execute two passes."

In some cases this variable can work correctly in SinglePass mode, but we guarantee correct behaviour only in case of DoublePass mode.

So please set the NumberOfPass property of the report to the DoublePass.

Thank you.