Kinetic updatable dashboard -- check and save dirty rows before closing the form

Hey.

I have an dashboard in 25.2 that I’ve converted from Classic. It works fine, but it doesn’t check for a dirty row (possibly mutliple) before closing the form.

How might I add an event to catch the form closing and verify the update?

Thanks,

Joe

4 Likes

Which “closing” do you mean? Closing the form my clicking “X” on the tab? Closing the form by opening another form via the waffle menu?

1 Like

Just closing the form with the X button.

I’ve noticed for some time that apps like menu maintenance, BAQ designer, and Application Studio don’t ask if you want to save changes if you close the form. I finally did some checking yesterday, and it seems that’s standard functionality now in Kinetic apps–to just close without checking for dirty rows.

Is my experience unique?

Thanks,

Joe

2 Likes

That is probably a browser thing then as it’s likely outside the layer’s ability to “see”.

window.addEventListener("beforeunload", function (event) {
    // your code here

    event.preventDefault();
    event.returnValue = ''; // Required for Chrome
});

They can do it…

4 Likes