Falcon Space. Working with notices
Two types of notifications
- asynchronous - by event. Are called in the code via mng.Notifications.CreateNotification. The function is passed the type of notification, from whom and to whom.
- synchronous - conditions are checked daily (in SQL) and events are created when running business logic for this type of notifications.
Example of a stored procedure
Storage name nt_[entity]_check[Event].Only @username is passed.
The query simply returns a certain result in any form, if there are strings, then a notification is created for the user's loyalist with the content of the query.
Calling a notification from sql
To create notifications from stored procedures, call the stored procedure as_nt_createNotification:
- from - the user who sent the notification.
- to - the user to whom the notification was sent.
- url-additional URL as part of the notification information
- text-short notification text
- typecode-notification code from the notificationTypes table
- additional - additional information about the notification.
Note:
1. You can also trigger an immediate notification when saving the form (see Calling external actions, for example via the Saveitem parameters for the form in SELECT 2).
2. If it is possible to better call procedures via external actions
3. If you need instant notification, use External actions. This will allow you to use the platform's funds to send push notifications.
Questions about notifications
How to make a custom layout for the notification bar at the top right
To do this, specify in the stored procedure [as_nt_getUserNotifications] в SELECT 2 in parameter CustomMakeup the required markup. In this case, SELECT 1 data will not be taken into account. This procedure is called on the page to request the number of unprocessed notifications.
It is appropriate to form the panel layout using an HTML block (with a procedure) and then use it in the CustomMakeup parameter.
- Management
- Falcon Space Foundation
- Basic components
- Falcon Space Features
- Коммуникация с пользователем Falcon Space. Working with notices HOWTO. How to set up a help chat for users Falcon Space. Working with chat Falcon Space. Working with comments Telegram bots and sending messages to Telegram Как создать чат бот ВКонтакте. VK бот для обработки сообщений в группе. How to make a push notification HOWTO. How to send an Email, SMS, or notification to a user Как отправлять SMS с сайта через smsc.ru Sending an email with a letter template How to send a daily report on the project to the Telegram group chat? Mail settings Video chat. Integration with Vox Implant Basic integration with Jitsi Meet (calls with video) Отправка СМС через targetsms.ru Как сделать механизм отправки различных писем по шаблону с возможностью редактирования перед отправкой
- Дизайн, стилизация
- Integrations
- Каталоги
- Навигация
- Документы
- Additional component
- Продвижение, SEO
- Системные моменты
- HOWTO
- HOWTO Tables
- HOWTO Forms
- Working with SQL
- HOWTO JS
- HOWTO Layout
- Solve problems
Falcon Space Platform
This is a reduction in the cost of ownership
at the expense of fewer people to support
This is a quick change
while using the program
This is a modern interface
full adaptation for mobile devices
- Falcon Space Video
- Platform features demo will allow you to understand how this or that component looks and works
- Have a question? Write to the chat at the bottom right