Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, July 5, 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: Problems refreshing the open forms
Cory Haibloom
Posts: 39
 
Problems refreshing the open formsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Jun 10 10:27 AM
Under SLX 7.2, I was using the following code to refresh all of the currently open forms as part of an OK event on a popup form:

Dim i
For i = 0 to Application.Forms.Count-1
Application.Forms.Item(i).Refresh
Next

That worked fine for me and my users in 7.2 (and still works okay for ME in in 7.5), but some of my 7.5 users are getting script errors when it hits this bit of code. Is there a better way to accomplish this?

Thanks!

Cory
[Reply][Quote]
Dan Carvin
Posts: 227
 
Re: Problems refreshing the open formsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jun 10 10:57 AM
What error are they getting?

In 7.5 there are known issues with the timing of events and datagrids, and HF's with a workaround. This may be a similar issue. Try this:

Dim i
For i = 0 to Application.Forms.Count-1
If not (Application.Forms.Item(i) is Nothing) then
Application.Forms.Item(i).Refresh
End if
Next
[Reply][Quote]
Cory Haibloom
Posts: 39
 
Re: Problems refreshing the open formsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jun 10 2:09 PM
Actually, I'm getting that it doesn't recognize .Refresh as a valid method for Application.Forms.Item, which is odd since it not only was valid in 7.2, but it's still working fine for me even though it doesn't work for at least one of our users. Very weird.
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Problems refreshing the open formsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jun 10 4:00 PM
Did you try Dan's code?
[Reply][Quote]
Cory Haibloom
Posts: 39
 
Re: Problems refreshing the open formsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jun 10 6:09 PM
I did try Dan's code, and the problem seems to have gone away!

Dan and Phil.... thanks so much!!!

Cory
[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/5/2025 9:01:16 PM