This topic is locked

totaling fields not working with 4.0 now??

5/23/2007 2:11:24 PM
PHPRunner General questions
R
rcurtin author

with PHPRunner 3.1 I had my pages set up to total the fields from the database. This function used to work GREAT but since I have upgraded to 4.0 it does not seem to work....
Screenshot of the not working page from 4.0


Screenshot of the working page (I kept) from 3.1


I have tried shutting off the totals saving/building, then returning them with no success... any information would be great.

J
Jane 5/24/2007

Hi,
thank you for pointing me to this bug.

We'll fix it in the next PHPRunner update.
To make your pages working please open C:/Program Files/PHPRunner4.0/source/include/commonfunctions.php file, find this snippet:

else if($sFormat == FORMAT_CUSTOM && $stype!="COUNT")

$sValue = GetData($data,$field,$sFormat);

and add following code just after:

else

$sValue = $value;

R
rcurtin author 5/24/2007

That fix worked perfectly thank you so much. I also noticed that the "count" function is working where it does not count empty fields that is awsome. I asked Sergey about that he told me it would be implimented I was shocked that it went in so fast you guys/gals ROCK!!!!