General information
Category:
Third party products
Title:
VMP, requerying cursors in frmDEGridNav2Pages
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only