Users can hit our MX Web 10.4.2 installation and have device names automatically assigned, but that's not the desired behavior since our host application makes extensive use of pre-configured device names. We know how to pass a DeviceName via a URL parm, but our users are resistant to saving a bookmark or typing the parm. I would like to let users click a button on our logon page to switch their device. I'm able to use the EmulatorConnect function to switch to their specified device but users don't want to do this every time they visit. We need to make their device "sticky" so it's remembered from session to session on that machine. <insert annoyed grumbling about users here>
A browser's LocalStorage is accessible via JavaScript, and I thought that might be an option for making the device name sticky.
- User hits our base URL and gets auto-assigned QPADEVxxxxxx
- User switches to their device via EmulatorConnect....say, MIKEPRT
- App writes DeviceName to LocalStorage
- All subsequent visits - user hits our base URL but app checks LocalStorage and uses EmulatorConnect to automatically switch from QPADEVxxxx to the correct device (MIKEPRT)
I'm not very familiar with the JavaScript plumbing and am getting quite tangled up. I've been digging around for some object models but not coming up with much useful. Can anyone provide some guidance on how to implement this sort of behavior?
------------------------------
Mike Warren
Software Development Manager, GOLD Team Leader
CU*Answers
Grand Rapids MI US
------------------------------
