LANSA Mobile Container Testing [SOLVED]

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
LANSAGuru
Posts: 68
Joined: Thu Mar 24, 2016 5:31 am

LANSA Mobile Container Testing [SOLVED]

Post by LANSAGuru » Thu Sep 19, 2019 9:30 am

How do you test whether your VL Web page is running inside of the LANSA Mobile container or not.

I can't find this in the doco....

Thanks,
Paul

JamesDuignan
Posts: 81
Joined: Thu Nov 26, 2015 1:43 pm

Re: LANSA Mobile Container Testing

Post by JamesDuignan » Thu Sep 19, 2019 10:14 am

Hi Paul,

There is no RDML implementation to check if the application is being run inside of LANSA Mobile.

What I have done previously is use the initialize event from the xdevice* widgets to set a property to say I am inside LANSA Mobile, as they will only initialize if it can access the LANSA Mobile(LongRange) API's.

Regards,
James

LANSAGuru
Posts: 68
Joined: Thu Mar 24, 2016 5:31 am

Re: LANSA Mobile Container Testing

Post by LANSAGuru » Thu Sep 19, 2019 1:25 pm

James,

A little kludgy, but it does seem to work OK.
It goes without saying...it would be nice to have this be a property of #SYS_WEB or something like that.
Low priority as long as we know how to do it. Works like a champ.

In this case I really need to know if I am in or out of the container because certain things work differently (not so much browser or platform or OS detection).

Thanks,
Paul

Post Reply