Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VMP framework: possible bug on Add to screen
Message
De
04/02/2016 14:09:33
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
03/02/2016 10:46:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
Windows Server 2012
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01630684
Message ID:
01630849
Vues:
88
Hi Albert

The new record is supposed to be appended to the view. Cancel should be tablereverting the view - back to the previous record. Have you set the icMainViewAlias on the form correctly?

>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform