Use if in event
Use if in event
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?
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?
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: Use if in event
Hello,
Unfortunately, events are not supported in the JS version.
Thank you.
Unfortunately, events are not supported in the JS version.
Thank you.
-
- Posts: 3
- Joined: Mon Oct 05, 2020 3:03 pm
Re: Use if in event
Hi,
does this feature will be added in a (not so far i hope) futur ?
Regards
does this feature will be added in a (not so far i hope) futur ?
Regards
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: Use if in event
Hello,
Yes. We are working on that feature, it will be available in the near future.
Thank you.
Yes. We are working on that feature, it will be available in the near future.
Thank you.
-
- Posts: 3
- Joined: Mon Oct 05, 2020 3:03 pm
Re: Use if in event
Hi,
any news for this feature ?
Regards
any news for this feature ?
Regards
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: Use if in event
Hello,
Please check the last release build.
Thank you.
Please check the last release build.
Thank you.
-
- Posts: 3
- Joined: Mon Oct 05, 2020 3:03 pm
Re: Use if in event
OK, I see that the event Before Print and After Print are now present.Lech Kulikowski wrote: ↑Mon Jan 18, 2021 11:58 pm Hello,
Please check the last release build.
Thank you.
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
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: Use if in event
Hello,
You can use the following code:
Thank you.
You can use the following code:
Code: Select all
if (Products.getData("ProductsName") == "PageBreaks")
this.engine.newPage()