Mike Yearwood
Toronto, Ontario, Canada
Information générale
Catégorie:
Produits tierce partie
Versions des environnements
Network:
Windows Server 2012
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement