Page tree

Contents

The root page null could not be found in space Technical Info.

Logon.html (v5.0.x) and Uniface Command line parameters


The Uniface Anywhere example webpages that can be found after installation of the HOST at <installdir>\web and reachable by http://hostname/uanywhere/ has changed with the introduction of version 5.0.0 and is now using JavaScripting.

The supplied example webpages are browser aware and will start (when possible) the correct UA-Client for the used client environment.

All relevant application startup parameters for the client are now located in one html file called “logon.html”.
These parameters are in the form of:

// controlArgs.set([variable]);


When making use of these arguments be aware of the following:

  • The relevant line needs to be uncommented by removing the // in front of the argument that is required.
  • Special characters (like <space>, <_>, <?> etc.) used in values, needs to be escaped for interpretation by the browser


To automatically escape characters, Javascript has the function: encodeURIComponent.

In next example we want to pass the Uniface arguments:

Uniface command line arguments
"/adm=c:\u9702\uniface\adm /dir=c:\ua-9702 /asn=c:\UA-9702\_usys.asn"

to the application defined in:

logon.html
"controlArgs.set([ "app", "IDF 9702" ]);"

in the logon.html page.



Example on how to use encodeURIComponent in the Logon.html page:

logon.html
controlArgs.set([ "args",encodeURIComponent("/adm=c:\\u9702\\uniface\\adm /dir=c:\\ua-9702 /asn=c:\\UA-9702\\_usys.asn")]);

Be aware that you will still have to escape backslashes with a backslash, as encodeURIComponent does not encode the backslash.


This page has no comments.