VL- Web : How to avoid prompting when handling closing a browser.
Posted: Fri Jan 10, 2020 4:56 pm
Hi,
Our customer would like to handle the closing of the browser and call the server module.
So, they are currently using the code below.
-----
Evtroutine Handling(#sys_web.CloseQuery) Querystring(#QueryString)
Define_Com Class(#ServerModule.SAVE) Name(#SAVE)
#SAVE.ExecuteAsync( #AAA )
#QueryString := "Closing the page will end the LANSA session"
Endroutine
-----
But, in this case, the message specified with "#QueryString" is displayed at the prompt.
If we do not set a value for #QueryString, this event will not be handled.
We don't want this prompt to appear.
Is there a way to handle closing the browser and not displaying prompt?
Best regards,
Rieko Saitoh
LANSA japan
Our customer would like to handle the closing of the browser and call the server module.
So, they are currently using the code below.
-----
Evtroutine Handling(#sys_web.CloseQuery) Querystring(#QueryString)
Define_Com Class(#ServerModule.SAVE) Name(#SAVE)
#SAVE.ExecuteAsync( #AAA )
#QueryString := "Closing the page will end the LANSA session"
Endroutine
-----
But, in this case, the message specified with "#QueryString" is displayed at the prompt.
If we do not set a value for #QueryString, this event will not be handled.
We don't want this prompt to appear.
Is there a way to handle closing the browser and not displaying prompt?
Best regards,
Rieko Saitoh
LANSA japan