Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid/view refresh problem
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00775136
Message ID:
00775191
Views:
12
Jon,

For performance reason only current page is refreshed when Refresh of the form is fired. Adding THIS.Refresh() to the ACTIVATE() event of the page fixes that.

>I will ask for forgiveness upfront if this isn't too clear, but I will try my best to describe the problem.
>
>We have a form that, among other things, has a page frame which contains another page frame. There is one table that acts as our master table, whose key value we use to generate parameterized views of the children tables so that we have access to the records for the particular transaction.
>
>The problem we are running into is with regards to the grids that make use of these views and there's a decent amount of class code to update these views and supposedly get everything set for display. We're finding that if a page with a grid has focus when we switch from record to record in the master table, the grid refreshes just fine with the correct data from the view. However, if we switch records with focus on a different page, we find that the grid is still showing the original data prior to the record change AND the view is not pointing to the correct set of data. The initial testing we did in the debugger shows that in this instance, the view's key did not change even though the same code seems to be executing to update/requery the views.
>
>Could someone please give me some ideas as to why a grid and its associated view would not refresh?
>
>Laterness,
>Jon
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform