Page 1 of 1

Bypass the 'Leave' message when changes are made

Posted: Wed Aug 05, 2020 8:05 am
by nickdavies07
I need to log a user out of an application automatically if there is no interaction for a period of time.

However, when I perform the redirect to log the user out, the browser prompts 'Are you sure you want to leave' when changes are made in the designer to the report.

How can I bypass this?

Re: Bypass the 'Leave' message when changes are made

Posted: Wed Aug 05, 2020 12:10 pm
by nickdavies07
OK I've figured this out.

Set the

Code: Select all

designer.jsObject.options.reportIsModified
parameter to false and set

Code: Select all

window.onbeforeunload = null
after.

Re: Bypass the 'Leave' message when changes are made

Posted: Fri Aug 07, 2020 1:01 pm
by Lech Kulikowski
Hello,

Thank you for the information.