Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating new parent and child records in framework
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00187768
Message ID:
00187797
Vues:
21
Um, why aren't you just updating your views?
Worst case, you could trap the error and keep looping through, then go back through to get the children. < I'm not recommending this latter method, btw >

>My Save button code loops through the open cursors in AUSED() and does a TableUpdate() on each. This code originally comes from the txtbtns class of WIZSTYLE.VCX. The problem is that when both a parent and a child record have been added, a "trigger failed" error can occur, probably because the child happens to get updated before the parent, and there is no corresponding parent record yet. I need a generic and flexible means for the framework code to determine which cursors should be updated first. I usually have parameterized views for the child grid and therefore no relation in the Form.DataEnvironment.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform