Calculated column PHP
Posted: Thu Apr 16, 2015 3:57 pm
Hello,
in order to draw a performance chart, we created a calculated column like this:
rendTemp==-9999999999 ? rendTemp = 100 : rendTemp = rendTemp * (1+ this.ptfRet.PtfPerf);
rendTemp is a variable initialized to -9999999999
ptfRet is a datasource (rendTemp is a column of this datasource)
PtfPerf is a field (type double) of the datasource that represent the serie of performance of an asset (something like this: 0,3%, 0,5%, .0,3%)
With this column we want to draw a line that start from 100 and repesents the performance of the asset.
If we use the .NET designer it works like a charm, but when we migrate this on php nothing works.
We changed also the calculated column to
rendTemp==-9999999999 ? rendTemp = 100 : rendTemp = rendTemp * (1+ ptfRet.PtfPerf);
with no useful results.
In .NET version we can explore the "translation" in C# code (the event used to calculate the column values), but in php I think that's not possible...
Can someone help me?
Thanks.
in order to draw a performance chart, we created a calculated column like this:
rendTemp==-9999999999 ? rendTemp = 100 : rendTemp = rendTemp * (1+ this.ptfRet.PtfPerf);
rendTemp is a variable initialized to -9999999999
ptfRet is a datasource (rendTemp is a column of this datasource)
PtfPerf is a field (type double) of the datasource that represent the serie of performance of an asset (something like this: 0,3%, 0,5%, .0,3%)
With this column we want to draw a line that start from 100 and repesents the performance of the asset.
If we use the .NET designer it works like a charm, but when we migrate this on php nothing works.
We changed also the calculated column to
rendTemp==-9999999999 ? rendTemp = 100 : rendTemp = rendTemp * (1+ ptfRet.PtfPerf);
with no useful results.
In .NET version we can explore the "translation" in C# code (the event used to calculate the column values), but in php I think that's not possible...
Can someone help me?
Thanks.