SYS Object
Biz / Browser builds a SYS object under the Root object at startup. It is generated before the application’s CRS is loaded, so it can always be referenced in “//.SYS”.
The SYS object is read-only. You cannot change the value, delete it with the Delete method, or add a subordinate object with the Append method.
The properties of the SYS object are described below.
| Name | Type | Description |
|---|---|---|
| OS | String | A string that identifies the client OS Functions have been expanded since |
| OS_VERSION | Number | Client OS version number |
| CLIENT | String | Client browser name |
| CLIENT_VERSION | Number | Client browser version number |
| PROXY | String | Proxy server host name |
| PROXY_PORT | Number | Proxy server connection port number |
| SERVER | String | Server host name |
| SERVER_PORT | Number | Server connection port number |
| USERNAME | String | (Always blank. It is left for compatibility with the past. The Windows login user name can be obtained with the Runtime.GetUserName method.) |
| APPROOT | String | (Remained for compatibility with the past) |
| HOSTNAME | String | Client computer name |
| MODELNAME | String | Manufacturer name, model name, etc. (manufacturer setting value) Supported by |
| PLATFORM | String | Platform type Supported by |
| DEVICEID | String | Device unique ID In the Mobile version, the value is not guaranteed for Windows CE 5.0 or earlier models ( excluding Windows Mobile ). A valid value is set only if the WindowsAPI KernelIoControl IOCTL_HAL_GET_UUID option is supported. In the Android version, you can get the serial number set on the device. Supported by |
| LANGUAGEID | Number | You can get the language ID ( locale ID / LCID) of the running OS . Using this value makes it possible to determine the operating language in the CRS and branch the process. Added since |
Usage Example
var message = strf("OSは %1 です", //.SYS.OS);
var title = strf("%1 Ver.%2", //.SYS.CLIENT, //.SYS.CLIENT_VERSION);
MessageBox(message, title);
The SYS object is no longer deleted when the DeleteChild method is executed on the Root object from Ver.5.0.0, Mobile Ver.4.5.0.
APPROOT Property
The APPROOT property is left for compatibility with past Biz / Browser . Avoid using this property as much as possible.
Get and set the position to be treated as “/” in the resource on the server. The value of this property can be changed exceptionally.
For example, if “/ APP1” is set and Get (“Proc1”) with a relative path, the request will be sent at the URL http: // server-name / APP1 / Proc1. Also, if you use Get (“/ Proc1”) with an absolute path, the request will be sent at the URL of http: // server-name / Proc1.
Starting with version 3.0, the APPROOT property must be downloaded by the same protocol, server, and port as the primary session (protocol, server, port when logged in) and the APPROOT property is specified. Use to determine the URL. Other than that, the URL is determined based on the specifications of the Get method.
Note that the URL in the CAR file is also affected by the APPROOT property, so setting the APPROOT property will almost always prevent the CAR file from loading as intended. Therefore, APPROOT cannot be specified and CAR files cannot be used at the same time.