How to save value to master table

In the event “OnAfterUpdateAll” - I am setting a value on the master application when changes have been made to the detail. I can see it on screen - but it does not actually write that value to the table - unless I go back to the top (Parent form) and also click Save there.

I tried sc_commit thinking it would save the change but that doesn’t seem to work.

How do I save the value to master table?

sc_master_value() updates only the master form. Write the data with sql statement to the table if you don’t want to click save in master …