send user notification from server code

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Feb 9, 2016
Company: CTC

Hi,

Is there a way to send a user notification to one of the users from the server side.
So, I want to create or send user notification from a common module server code. For example, lets say I know I know I have user1 and I know user1 is currently working with live session on the application and I want to send user1 a notification from the common module or I want to open a specific document on his interface.
is there a way to do it? Iam using 8.3.15

 
#2
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Oct 4, 2018
Company:

Hello!
CollaborationSystem will help you. But collaboration system server is required.

 
#3
People who like this:0Yes/0No
Active user
Rating: 5
Joined: Mar 29, 2016
Company: DND YAZILIM LTD.

Hi,

You can add notification on InformationRegister and check, then show notification form.

Example:

- In Managed Application Module

Code
Procedure OnStart()
   AttachIdleHandler("CheckAndShow",60);
EndProcedure


Procedure CheckAndShow() Export
   If Not  SessionControl.GetNotificationFormActive() Then
      OpenForm("CommonForm.NotiForm",Parameters);
      #If ThinClient Then
         Beep();
      #EndIf         
   Endif;
EndProcedure

Edited: Hüseyin Çağrı Bayraktar - Sep 25, 2019 10:43 AM
 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.