Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VMP framework: possible bug on Add to screen
Message
From
03/02/2016 10:46:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
VMP framework: possible bug on Add to screen
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
Windows Server 2012
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01630684
Message ID:
01630684
Views:
71
To those of you who still run VMP, can you confirm this action? It is set up as follows:

- uses frmDEgrdNav2Pages
- uses a table on the Nav grid
- uses a view for the 2nd page for data entry (.icMainViewAlias)

Steps to reproduce:

1) navigate to a record (not necessary but easier to see)

2) Add a new record; enter some stuff. Focus should be on the view page (usually page 2)

3) Cancel the add

Result: I had not noticed this before - I am left with all disabled, blank fields; reason being is that the view's new record has been deleted because the Add was cancelled and this leaves the record pointer at EOF for the view and thus VMP code must disable everything.

Workaround (which I don't like), in .CancelAfterSuccess(), if pcMode = "ADD", force the active page back to Page 1 (the Nav grid) because then if you go back to Page 2 or nav in the grid, the view gets refreshed properly.

I would have thought that the view would have popped back to the previous record (and maybe I need to track that down instead).

Thanks,
Albert
Next
Reply
Map
View

Click here to load this message in the networking platform