How do you write code to refresh all open forms as part of an OK event on the popup form??

Question:

Under SLX 7.2, The following code was used 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 in 7.2 (and still works 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?

Answer:

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

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) news and product updates!

You have Successfully Subscribed!