Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A grid question
Message
De
12/12/1997 16:49:24
 
 
À
12/12/1997 15:22:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00065625
Message ID:
00065681
Vues:
28
>>I have a pageframe with 2 pages. Each page has a grid. Both of them draw the contents from the same table. The only difference between them is that one will grap all the record with status=1 and the other grap the record with status=0. I created 2 views for each of the grid. On the form, users are allowed to change the status. My problem is everytime I change the status from 1 to 0 (or vice versa), say from page 1, and go to the page 2, the grid on page 2 will not show the updated record. However, if I browse back to page 1, the grid got updated, so is page 2. Does anyone out there know how I can get the grid shown the updated information the first time I switch pages? Thanks in advance!
>>
>>Chu
>
>In the page.activate event, put
>requery('myview')
>this.refresh

I have the above code, but it doesn't work. I also try the following code in the page.deactivate.event.

LOCAL cRecordSource
WITH this.parent.otherpage.otherGrid
cRecordSource=.cRecordSource
.RecrodSource=cRecordSource
ENDWITH
requery('myview')
this.refresh
this.parent.otherpage.otherGrid.refresh

Again, it also doesn't work. Any suggestion?

Chu
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform