This topic is locked

field data based on calculation of other fields

1/19/2009 4:02:32 AM
PHPRunner General questions
K
kotea author

Hi,
I've calculated two fileds in one field(Total) but when i edit the two fields the the total does not change,

can anyone help me

to update total fields based on the calculation of the other two fields. Please........
I used the following code in the Before record added events.
$values["Total"] = ($values["Salary"]+$values["Wages"]);
It can calculate the total but when i change or edit the salary and wages field, total field is not changing at aall.

J
Jane 1/20/2009

Hi,
It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.

A
alang 1/21/2009

It can calculate the total but when i change or edit the salary and wages field, total field is not changing at aall.


Are you using inline edit? - if so it won't work until page is submitted - press refresh button on browser.