PHP Code

Ask your questions here.
Post Reply
amamyoj
Posts: 44
Joined: 17 Nov 2023, 19:37
Name: Joy Pacardo
Location: Philippines

PHP Code

Post by amamyoj »

I am using the PHP Code Type in getting the Cummulative sum of the records. But the field is showing 'blank'
this is the query that I am using:
$initialVal = 0;
$currentValue = $initialVal + ([1350]);
$previousSum = ([1350]);
$cumulativeSum = $previousSum + $currentValue;
$cumulativeSum;

and here is what's showing in the debug mode:
Screenshot 2024-03-10 114930.png
Field_1966 is the PHP Code field Im trying to work on and [1350] is the field im getting the value in.

Am I missing something? PLease help.

THanks!
User avatar
support
Site Admin
Posts: 6222
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: PHP Code

Post by support »

amamyoj
Posts: 44
Joined: 17 Nov 2023, 19:37
Name: Joy Pacardo
Location: Philippines

Re: PHP Code

Post by amamyoj »

Thank you Sergey. I will try this.
Post Reply