Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VMP, requerying cursors in frmDEGridNav2Pages
Message
From
01/03/2000 15:49:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
VMP, requerying cursors in frmDEGridNav2Pages
Miscellaneous
Thread ID:
00340082
Message ID:
00340082
Views:
53
When I put code into ShellRequeryMainViewAlias() to requery a couple of views that we a) *not* the MainViewAlias() and b) that were not bound to data entry grids. They were in fact a couple of views to just display data (ie. a grid showing sales data for this contact).

These work fine when moving between existing customers on the grid list on the first page ie. they refresh properly because ShellRequeryMainViewAlias() is called everytime the cursor row changes in the main table.

They do not refresh though when I do an 'add'. Stepping through the VMP code, I see that it refreshes any objects that are data entry grids and also any objects based upon the class ctrDERegisteredComposite (whatever that is) so these get refreshed and therefore they get blanked out upon pressing Add.

It looks like I have to put code into the other shell methods like AddAfterAppendBlank() or UpdateFormOnAdd() to requery my views at that point.

Would this be the recommended route to go or has VMP got some other hook in it to requery views that are not based upon data entry grids of your making.

Albert
Next
Reply
Map
View

Click here to load this message in the networking platform