$systemInfo
This object within JavaScript provides overall information about system settings and the current user.
Using this object can help you in program logic when you need to access the current user's type, role, active languages, locale and currency settings, and a lot more.
Example:
var $partnerMessageBlock = $("#partnerMessage");
var $mspMessageBlock = $("#mcpMessage");
if ($systemInfo.roleName == "MSP")
$mspMessageBlock.show();
else
$partnerMessageBlock.hide();
Properties
| Property Name | Property Type | Description |
|---|
| active_languages | string | List of supported language codes |
| appName | string | Name of the application or community |
| companyCurrencySymbol | string | Currency symbol used by the company |
| dateFormat | string | Format used for displaying dates |
| digitSeparator | string | Symbol used for separating digits (current locale) |
| display_user_currency | boolean | Whether to show the user-specific currency |
| edition | string | Edition of the application |
| groupingSeparator | string | Symbol used for grouping digits (current locale) |
| guest | boolean | Indicates if the user is a guest (public user) |
| impr | boolean | Impressions tracking (login as) |
| ipAddress | string | IP address of the user |
| isMobileServiceActive | boolean | Indicates if the mobile service is active |
| lang | string | Current language code |
| licenses | string | List of assigned licenses |
| locale | string | Locale code |
| multi_currency | boolean | Indicates if multiple currencies are supported |
| preferred_currency | string | User's preferred currency (ISO Code) |
| products | string | List of active products |
| rewards | boolean | Indicates if rewards are enabled |
| role | string | Role name of the user |
| roleType | string | Type of role (guest, admin, employee, partner, customer) |
| site_desc | string | Description or ID of the site |
| site_image | string | Path or URL to the site image |
| userCurrencySymbol | string | Currency symbol for the user (ISO Code) |
| userId | string | Unique identifier for the user |
| user_timezone | string | Timezone of the user |