Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VMP, requerying cursors in frmDEGridNav2Pages
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00340082
Message ID:
00340094
Views:
25
>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

You may be able to add them to the array property THIS.iaDataEntryGrids -- I'm not sure if that would trigger their refresh or not.

Barring that, I'd use the AddAfterAppendBlank() method.
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform