This topic is locked

Master Detail inline add/edit Javascript events

5/15/2011 12:00:49 PM
PHPRunner General questions
B
bonfa53 author

Hi

I've a master-detail table with inlide add/edit for detail.

I would like to add a javascript code when a detail line is added or edited and when the line is saved... something like: this.on('detail_inline_add', functions)

I tried with the onload javascript on detail list/add/edit without any results.
Thanks to anyone who could give me a hand!
Fabrizio

Admin 5/16/2011

Fabrizio,
I'm afraid this won't be possible this way. Probably you can explain what exactly you trying to achieve and we suggest some kind of workaround.

B
bonfa53 author 5/16/2011

Thank you for the answer.

I'm trying to achieve these results:

1- Calculate master fields on detail save (eg: master total field as a result of multiple operation on detail rows)

2- Calculate detail field on the fly in detail inline edit, I tried the example given with the help but javascript seem not to be passed to client (when I click add detail row) and then not to be executed.

Admin 5/16/2011

You can add your code to details Add/Edit page Javascript OnLoad event. This way you can calculate values of the same details record and update master record totals as well. Check example 3 for more info: http://xlinesoft.com/articles/how_to_use_calculated_fields.htm
If this doesn't help post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.