How to detect if the web page is running on LANSA Mobile

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: 79
Joined: Tue Mar 22, 2016 1:45 pm
Location: Tokyo, Japan

How to detect if the web page is running on LANSA Mobile

Post by MegumiSawada »

Hi All,

Is there any way to detect if the web page is running on LANSA Mobile?
Any methods? Any variables?

Our customer would like to detect it before using widget to avoid causing error.

Best Regards,
Megumi Sawada
anthony
Posts: 3
Joined: Tue Mar 22, 2016 3:58 pm

Re: How to detect if the web page is running on LANSA Mobile

Post by anthony »

Hi Megumi,

you should handle the widgets "Initialize" event. When the event is received you know that you are running in the LANSA Mobile application. No widget functionality should be run until this event is received.

See the LANSA documentation... http://docs.lansa.com/140/en/lansa013/i ... s%7C_____1

Regards,
Anthony
MegumiSawada
Posts: 79
Joined: Tue Mar 22, 2016 1:45 pm
Location: Tokyo, Japan

Re: How to detect if the web page is running on LANSA Mobile

Post by MegumiSawada »

Hi Anthony,

Thank you for your reply!
I'll let the customer know this.

Best Regards,
Megumi Sawada
Post Reply