Hi Liron,
Disconnect the button from the dataset, add a onClick event and use the following code:
export function savebutton_click(event, $w) {
$w("#dataset").save()
.then( => {
$w("#dataset").refresh();
})
.catch((err) => {
let errMsg = err;
});
}