Calculated column PHP

Stimulsoft Reports.PHP discussion
Lech Kulikowski
Posts: 2702
Joined: Tue Mar 20, 2018 5:34 am

Re: Calculated column PHP

Post by Lech Kulikowski » Fri Aug 09, 2019 11:19 am

Hello,

We need some time to investigate the issue.

Thank you.
mrossi
Posts: 5
Joined: Thu Aug 01, 2019 10:04 am

Re: Calculated column PHP

Post by mrossi » Tue Jan 14, 2020 10:13 am

Hi, is there any news? Because in the meantime we bought the PHP license and now we need this bug to be fixed...
Andrew
Posts: 3998
Joined: Fri Jun 09, 2006 3:58 am

Re: Calculated column PHP

Post by Andrew » Tue Jan 14, 2020 12:12 pm

Hello Mario,

My team says this will not be possible. In JS it is very complicated task to implement. Since there is no compilation, this won't work.

Thank you for understanding.
mrossi
Posts: 5
Joined: Thu Aug 01, 2019 10:04 am

Re: Calculated column PHP

Post by mrossi » Thu Jan 16, 2020 3:07 pm

Hi Andrew,

thanks for the reply. If the PHP version is a "porting" of the .NET version, I can understand the problem in rewriting it. Given the answer, I tried to rewrite the in line if with assignment on the fly in all possible ways that came to mind and in the end I found one that is interpreted.

rendTempY == - 9999999999? rendTempY = 100: rendTempY = rendTempY * Exp (this.ptfRetY.PtfPerf)

can be written as...

rendTempY = (rendTempY == - 9999999999? 100: Exp (this.ptfRetY.PtfPerf) * rendTempY)

...and it works

There is a further strange thing that should be mentioned ... if I invert the multiplication factors in the second case, the validator gives an error.

Example:
Exp (this.ptfRetY.PtfPerf) * rendTempY) // OK
rendTempY * Exp (this.ptfRetY.PtfPerf) // KO

and validation seems to give error in all cases where there is any mathematical function as the second factor, not only Exp()...

However, I don't need this but I just wanted to let you know ;)
Lech Kulikowski
Posts: 2702
Joined: Tue Mar 20, 2018 5:34 am

Re: Calculated column PHP

Post by Lech Kulikowski » Sun Jan 19, 2020 9:59 pm

Hello,

Thank you for the provided information.

Thank you.
Post Reply