Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, July 8, 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: Update Progress bar whilst doing a sql update
Clare Perry
Posts: 5
 
Update Progress bar whilst doing a sql updateYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Sep 09 11:26 AM
I want to increment a progress bar whilst a sql update that takes around 30s is performed. As it's a sql update and I'm not looping through records, I can't increment during the update. I have tried having a function called with a do while loop incrementing every 3 seconds - which works, but it performs the function first and then performs the sql update - which makes the whole process nearly 2 mins rather than the 30 seconds. Any way of getting the progress bar to auto increment 1 every 3 seconds whilst the sql update is performing??
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Update Progress bar whilst doing a sql updateYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Sep 09 1:56 PM
You need to get a control that executes on a separate thread.
And, since you don't know how long the update will take, you will need someting like a continues loop.

I had in the past built such controls and you can probably find examples around in the Web.

You could try using an Animated Gif or a Movie File as well.


[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Update Progress bar whilst doing a sql updateYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Nov 09 10:38 AM
What control would you place the Animated GIF into?

I see the animation control, it's looking for an AVI clip?
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Update Progress bar whilst doing a sql updateYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Nov 09 3:55 AM
RJ, even an animated gif wouldn't work - the .Start simply won't execute (been there, done that!). However, what you can do is look at how SLX Reports works - it throws up a screen (a MV) whilst running report. Maybe you could emulate this - and, has you'd have access to .Details you could then myAnimGif.Start etc. Maybe it'll work - not tried - but it's what I do.
[Reply][Quote]
LeVar Berry
Posts: 47
 
Re: Update Progress bar whilst doing a sql updateYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Dec 09 4:13 PM
Quote:
Originally posted by Clare Perry

I want to increment a progress bar whilst a sql update that takes around 30s is performed. As it's a sql update and I'm not looping through records, I can't increment during the update. I have tried having a function called with a do while loop incrementing every 3 seconds - which works, but it performs the function first and then performs the sql update - which makes the whole process nearly 2 mins rather than the 30 seconds. Any way of getting the progress bar to auto increment 1 every 3 seconds whilst the sql update is performing??


Just wondering if it would be easier to just change the mouse pointer to busy? And/or Have a form that says "Processing..." Even inside of MS SQL all you get is "Querying"

[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Update Progress bar whilst doing a sql updateYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Dec 09 6:25 AM
Quote:
Originally posted by LeVar Berry



Just wondering if it would be easier to just change the mouse pointer to busy? And/or Have a form that says "Processing..." Even inside of MS SQL all you get is "Querying"



Changing the mouse pointer to busy is harder than it sounds (other than at the control level). I'm with you on the 'Processing' idea though. Mike's idea is also not hard - in fact, you could use the same form as the reporting mechanism uses, overwriting text and caption appropriately when the MV is created (I know that this works because I've done it recently).
[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): 7/8/2025 5:29:07 PM