Showing custom messages using Close Query

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
MegumiSawada
Posts: 80
Joined: Tue Mar 22, 2016 1:45 pm
Location: Tokyo, Japan

Showing custom messages using Close Query

Post 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
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Showing custom messages using Close Query

Post 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
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
MegumiSawada
Posts: 80
Joined: Tue Mar 22, 2016 1:45 pm
Location: Tokyo, Japan

Re: Showing custom messages using Close Query

Post by MegumiSawada »

HI Stewart,

Thank you! I'll tell the customer so.

Best Regards,
Megumi
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Showing custom messages using Close Query

Post by Stewart Marshall »

You can also point them at the updated online help (http://docs.lansa.com/14/en/lansa016/PR ... EQUERY.htm)

Regards
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
Post Reply