Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A grid question
Message
From
12/12/1997 17:37:19
 
 
To
12/12/1997 16:49:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00065625
Message ID:
00065684
Views:
41
>>>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

Do you tableupdate() before leaving one page, so the underlying table is aware of the changes.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform