Update field with ajax

Hello,

I created a Master-detail Form. I have 2 fields in the principal form (total , saldo), the total field is updated when I add registers in the second form “Grid” . The point is that I need to update the Saldo field in the principal form when Total field is updated, I have the Formula but I don?t know where must I to put it to update the field. Attached a pictire to understand better.

Thanks for your help.

sc.jpg

[QUOTE=placks;39848]Hello,

I created a Master-detail Form. I have 2 fields in the principal form (total , saldo), the total field is updated when I add registers in the second form “Grid” . The point is that I need to update the Saldo field in the principal form when Total field is updated, I have the Formula but I don?t know where must I to put it to update the field. Attached a pictire to understand better.

Thanks for your help.[/QUOTE]

Have you checked the sc_master_value macro in the online help?

Hello

Yes I did it, I made a PHP method to run a sc_master_value, but is weird because only works with 2 registers, and then it stops and doesn’t run the order.

I don?t know why