4.1.1 Supported RCL $ Variables

Reflection for the Web supports $ expansion of RCL commands received from the host. In addition to ${0-9}, the following $ variables are supported:

Variable

Result

$DATE

Returns the current date (MM-DD-YYYY)

$DAY

Returns 0 (Sunday) through 6 (Saturday) indicating the day of the week.

$DIR

Returns the path to the USER_HOME folder for the client machine running the HP session.1

$SERIAL

Returns the Reflection for the Web serial number.

Example: J01-VVVL456789 (where VVV is the version number).

$TIME

Returns the current time (HH:MM:SS.CC).

$UPI

Returns the Reflection unique product identifier.

1USER_HOME varies according to operating system, browser, and VM. To find the home folder for a given operating system/browser/virtual machine combination, look for USER_HOME in the Java console.