My VLF-ONE application uses the Inactivity log off timeout. I also have a command handler that detects the command handler is closing without saving the changes and prompts the user if they want to continue without saving.
When the inactivity timeout occurs the message is displayed. But no matter what button is clicked, you will be taken to the timeout message.
Is there a property I can query in the uQueryCanClose method so I can suppress the message box so it will go directly to the timeout message when the logoff timeout triggers.
David.
VLF-ONE Inactivity log off timeout and uQueryCanClose
-
- Posts: 51
- Joined: Mon Feb 01, 2016 10:08 am
- Location: Australia
Re: VLF-ONE Inactivity log off timeout and uQueryCanClose
Your uQueryCanClose method shoudl have a boolean parameter Canbecancelled passed to it.
If this is passed false then you cannot cancel the close and must always return parameter Allow (to be closed) as True
You can however do things that do not require user interaction before returning control.
You should find that in this case that Canbecancelled is passed in as false - so don't display your message in that case.
If this is passed false then you cannot cancel the close and must always return parameter Allow (to be closed) as True
You can however do things that do not require user interaction before returning control.
You should find that in this case that Canbecancelled is passed in as false - so don't display your message in that case.
-
- Posts: 51
- Joined: Mon Feb 01, 2016 10:08 am
- Location: Australia
Re: VLF-ONE Inactivity log off timeout and uQueryCanClose
Hi Mark,
Thank you for the response. The Canbecancelled parameter solved my issue.
David
Thank you for the response. The Canbecancelled parameter solved my issue.
David