Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exiting form when new information is entered
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Exiting form when new information is entered
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01094788
Message ID:
01094788
Vues:
53
Hi everybody,

This probably would be hard to replicate, but if you can, please let me know the behavior you're seeing.

We have a form that has a pageframe with lots of pages. On the first page we have Patient information, on the second - Guarantor information. The patient may not have guarantors.

On that second page all the page controls are bound to children biz objects. In other words, the parent Guarantor biz object doesn't have fields we need to fill. But we're populating Guarantor name, address, etc., which are coming from child tables (and therefore child biz objects).

Now, when we try to close the form by clicking on the x in the upper right corner, the "Do you want to save your changes?" question is not coming up, since QueryUnload method first does CancelAllNewAndEmpty, and that method cancels new and empty of the parent and then of all children.

I'm not yet sure of the right approach to fix this problem and I'm wondering, if you can replicate this problem.

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Répondre
Fil
Voir

Click here to load this message in the networking platform