ICommonFunctions
Provides set of common functions for interacting with the environment. This interfaces is binded to the global MFiles object.
Example
// Save a key into webstorage
await MFiles.WriteToWebStorage("key", "value")
Properties
| Name | Type | Description | 
|---|---|---|
| AnonymousUser | boolean | |
| CurrentApplicationPlatform | string | 
Methods
| Name | Description | 
|---|---|
| DeleteFromWebStorage | Deletes the key value pair stored in the browser web storage for the given key. | 
| GetAccentColor | Gets accent color. | 
| GetClientLanguage | Returns language code of current client language. | 
| GetClientLocale | Returns language code of current client locale. | 
| GetSessionInfo | Gets the current NonSensitiveSessionData information. | 
| GetUTCOffset | Gets server based UTC offset in minutes | 
| GetVaultInfo | Gets the current vault information. | 
| GetWebLink | Get web link for an object. | 
| OpenExternalWebLink | Open external web link in a tab.  Note: This method only supports "http", "https" and "mailto" protocols.  | 
| ReadFromWebStorage | Retrieves the value stored in the browser web storage for the given key. | 
| ReportException | Reports an exception. The exception can be displayed to the user or written to the event log. | 
| ShowEditObjectWindow | Show object popup window to edit exist object. | 
| ShowNewObjectWindow | Show new object creation window to create new object. New object can be created using prefil properties as well. | 
| ShowToast | Show toast message. | 
| WriteToWebStorage | Writes the value in the browser web storage. |