I have a calc element with the following code:
$myCalc = (int)'{student_impact_score___impact_on_students}' * '{student_impact_score___timing_of_change}'*'{student_impact_score___number_of_students}';
return ($myCalc);
The element shows the result in list view only. It shows 0 in edit and form view. Database records 0. If I manually change the database value there is no impact in that edit and form view show 0 and list view shows the correct value. The value entered in the database is not rendered.
Settings are as follows:
Format string: empty
Only Calc on Save: NO
Ajax calculation: YES
Ajax observe fields: empty
Calc on load: YES
Hidden: NO
I am on php 7.2 and latest version of Joomla and plugin to date.
tables are all on the same database as the joomla db.
$myCalc = (int)'{student_impact_score___impact_on_students}' * '{student_impact_score___timing_of_change}'*'{student_impact_score___number_of_students}';
return ($myCalc);
The element shows the result in list view only. It shows 0 in edit and form view. Database records 0. If I manually change the database value there is no impact in that edit and form view show 0 and list view shows the correct value. The value entered in the database is not rendered.
Settings are as follows:
Format string: empty
Only Calc on Save: NO
Ajax calculation: YES
Ajax observe fields: empty
Calc on load: YES
Hidden: NO
I am on php 7.2 and latest version of Joomla and plugin to date.
tables are all on the same database as the joomla db.