Updating the master form

Hello

I have a tipical application with the master/detail forms.
In this case the master form have 3 fields that need to be calculated using information of the detail form.

When I init the application it is easy to calculate it, using the event onLoad(), but then when I change some values of the detail records, I need to recalculate this master fields and I don’t know how is possible.

My question is:

From the detail form, it is possible to execute a method of the master form?, or an event of the master form?

Thank you

From detail update:

  1. the table master: sc_exec_sql(“UPDATE master table SET value = $total WHERE key = {key_current}”);
  2. the form master with this macro: sc_master_value(‘value’,$total);