Hi,
I am using Appeon 21.
I am using the idle event of the application to auto log off my project. while using this facility, totally my project going to hanging mode.
have any advise in this case ?.
Thanking....
Hi,
I am using Appeon 21.
I am using the idle event of the application to auto log off my project. while using this facility, totally my project going to hanging mode.
have any advise in this case ?.
Thanking....
Yes, that code could easily hang your App.
Use HALT CLOSE instead and don't forget to set the Idle timer off first.
Assuming that with "while close w_auto_logoff" you mean to say that you have coded the following in the close() event of w_auto_logoff ?
Change your code to:
-------------------------------
UPDATE "xxxxxxxx" SET "lstatus" ='O' WHERE upper( "xxxxx" ) = :uid_ ;
commit;
// commented: if this code is in the close event, you are already closing the window, so no need to call it again.
// close (w_auto_logoff)
HALT CLOSE // to stop and close the application
idle event
-------------------
if not isvalid (w_auto_logoff) then open (w_auto_logoff)
while close w_auto_logoff
-------------------------------
UPDATE "xxxxxxxx" SET "lstatus" ='O' WHERE upper( "xxxxx" ) = :uid_ ;
commit;
close (w_auto_logoff)
We will need some more information in order for us to help. Please submit your idle event code.
Thanks
Are you using the HALT or HALT CLOSE command in the Idle event to close the App?
Hi,
What's your code to log off and close the application?
regards