Page 1 of 1

Device Detection

Posted: Tue Aug 09, 2011 12:32 pm
by Kgodfree
Is there a client-side application/widget that can determine the device that the user is working on and make it available to a back office field so an RPG program can know what location the user is working from?

Re: Device Detection

Posted: Tue Aug 09, 2011 2:54 pm
by Brian
What exactly are you looking for? IP address, Browser, Physical Device Model?

Re: Device Detection

Posted: Thu Aug 11, 2011 2:40 pm
by Kgodfree
IP or serial# of the disk drivet - we need to know the device so it can be cross referenced to a location file

Re: Device Detection

Posted: Thu Aug 11, 2011 5:06 pm
by Brian
The IP address can be retrieved from your RPG program without any client side widget.

If you are running in a pure ProfoundUI environment, we set an environment variable on the job called REMOTE_ADDR. You should be able to retrieve it to get the IP.

If you are running in Genie, or your Profound UI application was called from a Genie session, this environment variable does not exist, but you can retrieve the IP from the display device just like you would with a 5250 session if Genie is configured to run using virtual terminal.

If you are running Genie in Webfacing Server mode, it is very difficult.

Does this help?