Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Baby Steps!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Divers
Thread ID:
00662635
Message ID:
00662662
Vues:
21
Hi Julie.

The rule of thumb is one business object per updateable view. You will want to create new business objects/dataenvironments for each updateable view subclassed from the new one you created.

You will need to instantiate the business objects using something like the following since they won't be on a form:
LOCAL lobiz1

lobiz1 = CREATEOBJ('abizobj1')  &&& abizobj1 is the name of one of the bizobjs you need to update
*Code to update the view (REPLACEs, .NEWs, .DELETEs etc.)
lobiz1.Save()  &&& Save the changes - may need to also pass a .t. if multiple records are updated and is table buffered
lobiz1.Release()
HTH

Dan

>I created a new project successfully, then I wanted to add my own database container which I was able to do successfully also. After I followed the steps for Data Environments and Multiple Database Containers it stated you can now create subclass of this new data environment. This project is just going to open my database container and post updates to my tables daily. I have created views on all my tables and made them updateable. What is my next baby step. I got a new business object in abizness.vcx and a new dataenvironment in adataenv.vcx which one should i use to open my tables and should I update with the view names or the actual table names. Also I will not have a form to drop these objects onto because my code will run when the exe is run, so where do I put all the pieces. Hope I am being clear it's hard when you know what you want to do.
>
>Thanks so much.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform