Page 1 of 1
Use if in event
Posted: Wed Apr 24, 2019 4:04 pm
by Maxduf
Hello,
I'm trying to write a if condition into Before Print event like this : GroupFooterBand1.enabled = {IIF(GroupLine > 1), true, false)};
It doesn't work and i tried the order form of if on the documentation and some solution on the forum.
Can someone help me?
Re: Use if in event
Posted: Thu Apr 25, 2019 9:11 pm
by Lech Kulikowski
Hello,
Unfortunately, events are not supported in the JS version.
Thank you.
Re: Use if in event
Posted: Mon Oct 05, 2020 3:05 pm
by SOLUNE - Jérémy
Hi,
does this feature will be added in a (not so far i hope) futur ?
Regards
Re: Use if in event
Posted: Mon Oct 05, 2020 7:12 pm
by Lech Kulikowski
Hello,
Yes. We are working on that feature, it will be available in the near future.
Thank you.
Re: Use if in event
Posted: Thu Jan 14, 2021 8:13 am
by SOLUNE - Jérémy
Hi,
any news for this feature ?
Regards
Re: Use if in event
Posted: Mon Jan 18, 2021 11:58 pm
by Lech Kulikowski
Hello,
Please check the last release build.
Thank you.
Re: Use if in event
Posted: Wed Jan 20, 2021 4:49 pm
by SOLUNE - Jérémy
Lech Kulikowski wrote: ↑Mon Jan 18, 2021 11:58 pm
Hello,
Please check the last release build.
Thank you.
OK, I see that the event Before Print and After Print are now present.
Now, how can i force a page break with a condition ?
I found this kind of syntax, but i can't make it work :
if (Products.ProductsName == "PageBreaks"){Data1.StartNewPage = true;}
Regards
Re: Use if in event
Posted: Sun Jan 24, 2021 9:51 am
by Lech Kulikowski
Hello,
You can use the following code:
Code: Select all
if (Products.getData("ProductsName") == "PageBreaks")
this.engine.newPage()
Thank you.