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?
Bypass the 'Leave' message when changes are made
-
- Posts: 28
- Joined: Fri Jul 17, 2020 2:19 pm
-
- Posts: 28
- Joined: Fri Jul 17, 2020 2:19 pm
Re: Bypass the 'Leave' message when changes are made
OK I've figured this out.
Set the parameter to false and set after.
Set the
Code: Select all
designer.jsObject.options.reportIsModified
Code: Select all
window.onbeforeunload = null
-
- Posts: 6256
- Joined: Tue Mar 20, 2018 5:34 am
Re: Bypass the 'Leave' message when changes are made
Hello,
Thank you for the information.
Thank you for the information.