Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh of grid sometimes fails
Message
De
09/01/2021 05:48:28
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
08/01/2021 16:45:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01677764
Message ID:
01677767
Vues:
66
>Hi all,
>
>I have a read-only grid that users can drag-drop new files into. The files get uploaded to a server and then a requery of the server brings down a new list of the documents (this is done because there is other meta data that is on the documents server that gets displayed).
>
>Problem: occasionally the grid refreshes and instead of showing records, it is blank. If I fire up the debugger, there are actually the correct number of records in the cursor underlying the grid. But the grid shows nothing. If I come back from the debugging tool, this seems to force a refresh of the grid and my records display.
>
>My code: the code that rebuilds the cursor first pulls down the data and inserts it into the cursor (it is a cursor, not a parameterized view as the data actually comes down from the server in xml which is converted first). When that is done, I fire a refresh of the entire page e.g. this code is in the grid:
>
>THIS.Parent.Refresh()
>
>I do this because there are a bunch of buttons associated with the grid that also need their .Refresh() fired as what's in the grid determines their enabled state.
>
>The problem is, this works about 95% of the time - a refresh of the page should refresh every object contained in the page, right? And so it seems to. I am going to insert a refresh of the grid itself just before the .Parent.Refresh() for the page to see if this helps and load that on the customer's server.
>
>But it would be nice to have something more specific - are there instances when VFP refreshes a page but somehow is "lazy" at refreshing a grid because somehow it thinks it does not need to?
>
>Thanks,
>Albert

Hi Albert. Is there a SET FILTER involved? I remember problems with showing records in this situation .
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform