Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, August 24, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: displaying a popup or news ticker at runtime?
Stefan Held
Posts: 18
 
displaying a popup or news ticker at runtime?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Jul 08 3:44 AM
Hi there,
does anyone have an idea how to display a message to the users at runtime?
I'm thinking about something like "Please logoff in 10 minutes", "This bug has been fixed", "prices have been updated" etc....

I prefer not to use an existing form for the message since I do not know in which form the users are working at a certain time.
What I'm thinking about is something like a timer in the toolbar that checks periodically for new messages and then displays a popup or something
but I have no clue how to do this.

Any ideas?

Thanks a lot....
Stefan
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: displaying a popup or news ticker at runtime?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Jul 08 8:54 PM
Nice idea, but as SLX is single threaded (in terms of the customisation you can achieve through standard Architect plugins anyway), there's no easy way of achieving this AFAIK.

It may be possible via a .NET extension - at least you can start getting multi-threaded - but I have still never used those, so I don't know for sure.

Phil
[Reply][Quote]
Mark Richardson
Posts: 25
 
Re: displaying a popup or news ticker at runtime?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 08 3:43 AM
Hi Stefan,

I use some objects and a script that will show a ticker-type piece of text.

To do this, put a timer object on the form (best interval value seems to be around 200) and, on the 'OnTimer' event for this object, run the following script that will 'scroll' a label's caption:

Sub Timer1Timer(Sender)
Dim str
str = myLabel.Caption
str = Mid(str, 2, Len(str)) + Left(str, 1)
myLabel.Caption = str
End Sub

You can also use this to 'flash' things etc etc. The following script (again, run from a Timer object) flashes a coloured panel. A label is used to 'store' a toggled state;

Sub Timer2Timer(Sender)
if lblColor.Caption = "grey" then
Panel1.Color = wclOrangeRed
lblColor.Caption = "red"
Else
Panel1.Color = wclKhaki
lblColor.Caption = "grey"
End If

Hope this helps

Mark
[Reply][Quote]
Stefan Held
Posts: 18
 
Re: displaying a popup or news ticker at runtime?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 08 7:34 AM
Thanks a lot,
I took the idea with the .net form and now it's running (however, I skipped the one with the scrolling ticker, since performance is always an issue on our citrix farm...)
This is what I finally did:

start an invisible .net form with a timer control on it (started from the DB open script)
when the timer ticks, look in the database for new messages, if anything was found, show the form with the messages. User confirms, hide the form & restart the timer.

An additional table keeps track of the time a user has last read the messages, so they see only what has been added since then.


Cheers
stefan
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: displaying a popup or news ticker at runtime?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 08 5:53 PM
Good stuff, so is this a completely separate .NET application that has db login credentials hard-coded into it, or did you integrate it into SLX?

Phil
[Reply][Quote]
Stefan Held
Posts: 18
 
Re: displaying a popup or news ticker at runtime?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Jul 08 12:57 AM
No, it's integrated, using the slx db connection. The tables are also in the slx database.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 8/24/2025 6:25:35 PM