We have improved the user notification mechanism. From now on, it’s convenient to use in both thin client and web client. We have changed the way the notifications look and added some new features.
Displaying several notifications at a time
In the old version, the screen would display only one notification at a time. New notifications would overlap older ones, meaning that if a user received several notifications in a row, he or she was likely to miss an earlier notification.
Now up to three notifications can be displayed at the same time.
This is true for both thin and thick clients and also for the web client running in Internet Explorer and Google Chrome. It is possible to display an unlimited number of notifications in Safari and Mozilla Firefox. Microsoft Edge shows only the latest notification, but has an Action Center, which duplicates all notifications.
Displaying notifications when application window is inactive
In earlier 1C:Enterprise versions, web client users used to receive notifications only in the active browser window. If they switched to a different window or application, they couldn’t see incoming notifications. Now web client users can see notifications on their screens even when the application window is minimized or inactive.
When the ShowUserNotification() method is first called in the web client in Google Chrome, Mozilla Firefox, or Safari, the browser asks for the user’s permission to send him or her notifications. The user may choose to enable or disable notifications for this application.
If the user chooses to disable the notifications, a new type of notification will be used, however these will be displayed inside the browser window.
To prevent notifications from getting permanently lost, we have introduced a notification center and added a new notification feature–UserNotificationStatus. There are two statuses available: Information and Important.
Notifications tagged as Information appear on the screen and disappear in 10 seconds (4 seconds in Microsoft Edge). The Important notifications behave in the same way but are backed up in the notification center.
The notification center can be accessed from the Tools panel. When a new Important notification arrives, an orange dot appears next to the notification icon.
The notification center displays important notifications the user hasn’t reacted to yet by closing them or acting on them. Notifications are stored in chronological order, the newer ones are closer to the top. This means that even if the user leaves his or her computer, he or she will not miss the important notifications.
A notification can be deleted by pressing the clear button. If the notification requires a certain action, the user can clear it by clicking the notification text. The Clear notifications command deletes all notifications from the list, including those that required certain actions, without performing them.
Actions initiated by clicking notifications
In earlier 1C:Enterprise versions, the only thing a user could do by clicking a the notification was follow the URL. It was the the method’s second parameter.
ShowUserNotification(<Text>, <URL>, …
We have expanded notification capabilities, so that the second parameter could include not only a URL string, but also a text describing the notification.
ShowUserNotification(<Text>, <ActionOnClick>, …
The text describes the procedure that should be performed when the user clicks on the notification.
In the thin client, the style of the notifications in Taxi interface mode will be as similar as possible to Google Chrome notifications with the Notifications API enabled.
If the Version 8.2 interface is used, the style and behavior of the notifications will remain the same.
In the web client, the appearance of the notifications depends on the browser. Generally speaking, the notifications will look the same as they do in a thin client, but there might be differences, since every browser has its own specifics. Below is an example of what the same notifications look like in Internet Explorer and Mozilla Firefox.
Click the picture to enlarge it.
Among other specifics, the Internet Explorer browser supports only notifications displayed inside the application window, while Safari doesn't support the Picture parameter and displays notifications at the top of the screen.
This is a preview of a new functionality. We recommend that you do not use the content of this article as a practical guide to the new functionality. The new functionality will be fully described in the documentation to the relevant version of the software. You can find the complete list of changes in the V8Update.htm file.