sc_ajax_refresh

The sc_ajax_refresh() macro is used to reload the data in a grid application without the need to refresh the entire page.

Its use is exclusive to AJAX events in the grid, whether in the onClick event of a field or in the action bar.

Example of use

$upd = "UPDATE order SET status = 'completed' WHERE id =". {orderid};
sc_exec_sql($upd);
// Now the macro will be used to refresh the application's data.
sc_ajax_refresh();