Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple Data Access
Message
 
À
29/11/2001 13:23:22
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00587570
Message ID:
00587611
Vues:
23
>Perhaps I should have been more specific with my question...
>
>I'd like to see sample code for the following:
>
>You have two tables tTableA, tTableB. Add a new record to each one.
>
>Thanks....

OK, the general rule is that each updateable table should be in it's own bizobj. Most methods of the bizobj (including new) will only impact the initially selected alias (ISA)of the bizobj. The most important of the methods being SAVE. By default, the ISA is the first view added to the bizobj. Other than that you have to mess around with changing the ISA. Each updateable table should have it's own bizobj. This way you can assign business rules to each one and have code to set default values etc. in the onnew method for example.

The code would be -
lo = CREATEOBJ("bizobja")
lo.new()
Dan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform