Calculated column PHP

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

Re: Calculated column PHP

Post by Lech Kulikowski »

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 »

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: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: Calculated column PHP

Post by Andrew »

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 »

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: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Calculated column PHP

Post by Lech Kulikowski »

Hello,

Thank you for the provided information.

Thank you.
Post Reply