Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Requery
Message
From
22/10/2001 20:08:39
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
12/10/2001 17:00:17
Bill Breay
Custom Business Software
Arvada, Colorado, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00567983
Message ID:
00571913
Views:
18
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
Previous
Reply
Map
View

Click here to load this message in the networking platform