Uniface User Forum

 View Only
  • 1.  Messaging users

    PARTNER
    Posted 03-18-2022 12:24
    We have had a customer request to add a messaging feature for all logged-in users in our Uniface application - so an admin can, for example, ask everyone to log off, or something.

    I have implemented this by using a background service and the UTIMER functionality - this polls a database table every 10 minutes for any messages with the correct time stamp - does mean that users might not get the message at the same time.

    Is there a "simple" mechanism for "pushing" a message to all logged-in users in a client-server environment? We already know which users are logged in, it's just a case of forcing a message to be displayed for all of them at the same time.

    Thanks in advance,

    ------------------------------
    Wilson Mark
    Idox Software Ltd
    Theale GB
    ------------------------------


  • 2.  RE: Messaging users

    PARTNER
    Posted 03-21-2022 05:05
    Using postmessage. 
    You record the $instancepath during the log in, and then the server can postmessage the client, this will be received in the async trigger/recievemessage dependant on the version of Uniface. 

    Regards, 
    Iain

    ------------------------------
    Iain Sharp
    Head of Technical Services
    Pci Systems Ltd
    Sheffield GB
    ------------------------------