Page 1 of 1

Showing custom messages using Close Query

Posted: Fri Oct 28, 2016 1:23 pm
by MegumiSawada
Hi,

Our customer use CloseQuery to show their custom message as follows:

Evtroutine Handling(#sys_web.CloseQuery) Querystring(#QueryString)
#QueryString := "System will be terminated. Unsaved data will be lost!"
Endroutine

It works as expected on IE, but on Chrome, it shows the following default message, not their original message.
"Changes you made may not be saved"

It seems Chrome change their policy and remove custom messages in onbeforeload dialogs.
https://developers.google.com/web/updat ... ions?hl=en

Is this because of this Chrome policy?
Is there any way to show their original messages on Chrome by using CloseQuery method on VLWeb?

Best Regards,
Megumi Sawada

Re: Showing custom messages using Close Query

Posted: Fri Oct 28, 2016 4:30 pm
by Stewart Marshall
Hi Megumi

Visual LANSA is entirely dependent on the features made available by the browser in which it's running.

As Chrome no longer shows the QueryString as specified, there is nothing we can do.

Regards

Re: Showing custom messages using Close Query

Posted: Fri Oct 28, 2016 5:00 pm
by MegumiSawada
HI Stewart,

Thank you! I'll tell the customer so.

Best Regards,
Megumi

Re: Showing custom messages using Close Query

Posted: Fri Oct 28, 2016 6:45 pm
by Stewart Marshall
You can also point them at the updated online help (http://docs.lansa.com/14/en/lansa016/PR ... EQUERY.htm)

Regards