I currently use $setting to get environment variables set by JTi on login, One of these two is set by RDP sessions, the other by JTi (Uniface Anywhere) I can't remember which is which. We use the installed javascript UA Client.
v_machine = $processinfo("host")
if($setting("","CLIENTCOMPUTERNAME","ENVDATA") != "")
v_machine = $concat(v_machine,"/",$setting("","CLIENTCOMPUTERNAME","ENVDATA"))
elseif($setting("","CLIENTNAME","ENVDATA") != "")
v_machine = $concat(v_machine,"/",$setting("","CLIENTNAME","ENVDATA"))
endif
Author: Iain Sharp (
i.sharp@pcisystems.co.uk)