Page 1 of 1
LANSA Mobile Container Testing [SOLVED]
Posted: Thu Sep 19, 2019 9:30 am
by LANSAGuru
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
Re: LANSA Mobile Container Testing
Posted: Thu Sep 19, 2019 10:14 am
by JamesDuignan
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
Re: LANSA Mobile Container Testing
Posted: Thu Sep 19, 2019 1:25 pm
by LANSAGuru
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