Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this possible?
Message
De
07/05/1999 18:56:09
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Is this possible?
Divers
Thread ID:
00216290
Message ID:
00216290
Vues:
65
I have a form with some unusual requirements from a data standpoint. It can be called from 2 places:

1. Directly from the menu. In this case, its controls will be based on a temporary cursor created before the form is called. Any changes to form controls will be discarded when the form exits. I call this "Training" mode.

2. From another form. In this case, its controls will be based on a buffered view that underlies the calling form. When the form exits, any changed view columns will still be buffered in the calling form, ready to be saved or discarded by the user. This I call "Live" mode.

Since this form is going to be moderately complex, I would *really* like to avoid making two separate forms. Is it possible to create a single form that could meet these requirements?

I've played around a bit with DataSessionID, BufferMode and BufferModeOverride on a test form in Live mode. I can access the calling form's view and modify its values, but these changes seem to be "hot" (unbuffered) - the values in the underlying table have changed regardless of whether I save or revert in the calling form. I have little experience working with Data Sessions and Form/DE level buffering, so any pointers would be appreciated.

TIA.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform