Uniface User Forum

 View Only
  Thread closed by the administrator, not accepting new replies.
  • 1.  Uniface Anywhere: Getting the operating system from client

    ROCKETEER
    Posted 11-19-2018 12:01
    No replies, thread closed.

    Getting the operating system from client

    Author: hugo.garcia@virtualage.com.br (hugogarcia)

    Hello, I'm running the uniface remotely through JTI. I'm on a Linux Ubuntu with JTI accessing the uniface on a Windows server. Is there anyway to get the SO from the client(Linux)? Or get the current OS user name(Linux)? Because I'm using $processinfo and $oprsys but it returns only the information from the server.



  • 2.  RE: Uniface Anywhere: Getting the operating system from client

    ROCKETEER
    Posted 11-19-2018 12:01
    No replies, thread closed.

    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)


  • 3.  RE: Uniface Anywhere: Getting the operating system from client

    ROCKETEER
    Posted 11-19-2018 12:01
    No replies, thread closed.
    Iain Sharp said 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
    
    
      

    Thank's a lot. It worked correctly getting the username. 


    Author: hugogarcia (hugo.garcia@virtualage.com.br)