Jump to content

Help with Events in all sessions?


sicoobcooplivre

Recommended Posts

@SherzodGood morning!
Please, I need to trigger an event for all sessions, so that the mainform of each session refreshes a query to display a record counter in a label, so that each user knows a certain record.
I don't want to use the unitimer, so I thought of using the example below, broadcast!
Is it working on current version of unigui, using hyperserver?
Thanks!

 

 

 

Link to comment
Share on other sites

@SherzodNo problem!
And is there any way I can do what I want in the current version?
My scenario was like this: I use an FBEvents in the VCL application, so every time I have a database update, the FBEvents updates the mainform data I want, without needing a ttimer!
In Unigui I need to do the same thing, but I don't want to use Unitimer, I wanted some routine that triggers an event for all sessions, and then in each mainform I refresh a query to update my indicators!
Is there any solution for this? Or any suggestions please?
Thanks!

Link to comment
Share on other sites

  • Administrators
6 minutes ago, sicoobcooplivre said:

@SherzodNo problem!
And is there any way I can do what I want in the current version?
My scenario was like this: I use an FBEvents in the VCL application, so every time I have a database update, the FBEvents updates the mainform data I want, without needing a ttimer!
In Unigui I need to do the same thing, but I don't want to use Unitimer, I wanted some routine that triggers an event for all sessions, and then in each mainform I refresh a query to update my indicators!
Is there any solution for this? Or any suggestions please?
Thanks!

Yes, you can use BroadcastMessage method. However, if you use HyperServer there are some small bugs that will be addressed in 1566. (Will be released soon)

Link to comment
Share on other sites

In my case, the only thing I need is for each mainform to know that it has to refresh a query, I don't need to send a message, or any parameters, I just need each session to understand that it has received an event, and then I'll execute a refresh in a query that brings a counter and I will display in a label of all sessions, the same value!
Is there any other solution please?

Link to comment
Share on other sites

16 hours ago, sicoobcooplivre said:

Please, I really need a suggestion on how to update sessions, but without the unitimer, to show important data to users!
Is there any alternative to help me?
Thank you so much again!

Hi, I think you already have a solution to this with TuniThreatTimer. This component is used on the server side and you can use it to get data from the DB and store it in a global variable, this variable is visible in all sessions.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...