Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Requery
Message
De
22/10/2001 20:08:39
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
À
12/10/2001 17:00:17
Bill Breay
Custom Business Software
Arvada, Colorado, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Divers
Thread ID:
00567983
Message ID:
00571913
Vues:
19
From what you've described, this sounds like a job for Grid.Refresh()! Typically, adding a record through mere mortals grids is done through a modal form. After resetting focus back to the main form, the framework auto-refreshes. Since you say you are adding the record programatically, you aren't falling through that code. When you leave the screen and return subsequently, the Refresh() is automatically issued through the framework's Page.Activate() and voila, your record magically appears.

So, to make a long story slightly longer... After adding a record, and receiving a FILE_OK from the Save(), issue YourGrid.Refresh() and you should pick up the new record. Hope that solves your problem!
---J

>When I look at the page the new record is not displayed, I believe because the view has not been requeried. If I select the view and try to requery it the dialog appears looking for the value to vp_studentiid. ???
>
>What gives. Is there a way to requery the view? If I leave the screen and return the new record appears in its place with all other records.
>
>TIA
>
>Regards,
>
>Bill
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform