For Programmers: Free Programming Magazines  


Home > Archive > PowerBuilder > November 2005 > Sending message to users inside an application









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Sending message to users inside an application
kingsnake

2005-10-25, 7:02 pm

Hi all,

I have an application written in Powerbuilder 8.0 and i'd like to add a
way to administrators send a message to users currently inside the
application (like "The Server needs to restart... etc... " ), anyone
have any ideas?

Many Thanks
kingsnake@netcabo.pt
Peter B

2005-11-15, 7:02 pm

You didn't say what database software you're using. For instance, in
Oracle, you could set it up so that either your MDI frame or a hidden
window has an event that uses a timer to listen for a specific alert
and display a pop-up or a messagebox with the alert contents when it
receives one. Then you can use an Oracle alerter to send the message.

kingsnake wrote:
> Hi all,
>
> I have an application written in Powerbuilder 8.0 and i'd like to add a
> way to administrators send a message to users currently inside the
> application (like "The Server needs to restart... etc... " ), anyone
> have any ideas?
>
> Many Thanks
> kingsnake@netcabo.pt


rbpatna@gmail.com

2005-11-21, 7:02 pm

It is pretty easy and this technique works for any backend:

First create a window w_tickler having one label. Place this on your
MDI frame.

Create a timer event in w_tickler. In the timer event refresh the label
with the text from a field in the backend table. We use a ole to scroll
and look better but this is not required.

Note that the resize,window mdi space etc need to be handled properly
Hope this helps,

Ramesh Bas

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com