Hi,
i've two tables joined. 1st table contains users info, 2nd table contain repeated data for users
Each record of the data is composed of an amount and a checkbox.
To extract all the values of each individual user, I used a calc field with this code:
$amounts1 = (array) $data['pagamenti___importo_raw'];
return array_sum($amounts1);
Everything works.
Now I would like to extract only the values that have the corresponding checkbox flagged ... I can not find a solution to this problem.
Thanks for you support
i've two tables joined. 1st table contains users info, 2nd table contain repeated data for users
Each record of the data is composed of an amount and a checkbox.
To extract all the values of each individual user, I used a calc field with this code:
$amounts1 = (array) $data['pagamenti___importo_raw'];
return array_sum($amounts1);
Everything works.
Now I would like to extract only the values that have the corresponding checkbox flagged ... I can not find a solution to this problem.
Thanks for you support