Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to put these objects (3-tier question, again)
Message
De
16/01/2003 04:10:04
 
 
À
15/01/2003 12:19:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00741808
Message ID:
00742270
Vues:
25
Thanks, my only thought now is, what form of blank-record does the UI receive? ADO Recordset?, which is passes back to the business object when saving?

Kev

>Hmmm.. I guess I wasn't clear enough earlier. Sorry for any confusion I caused.
>
>There are two things that happen when a new record is added:
>
>1. The user presses the Add button. The following then occurs:
>- The UI requests a new record from the biz object. (this is a single record).
>- The biz object requests a blank record from the data object.
>- The data object returns an empty record to the biz object.
>- The biz object sets any default values
>- The biz object returns the empty record to the UI
>
>2. After entering the new data, the user presses the Save button
>- The UI sends the data to the biz object
>- The biz object validates the data.
>- If not valid, go back to the UI
>- If valid, the biz object sends the data to the save method of the data object
>- The data object inserts the data into the database.
>
>
>>Oh, just one more question (sorry to be a pain).
>>
>>If say, the client wants to create a new USER, the client calls the AddUser() method in the BO, then the BO calls the AddNew() method in the data-object, but, what form should the initial information passed around be in? I know ADO and XML are the forms, but what about identifying which values go in which fields?
>>
>>Should, perhaps, the client send a single-record recordset, or single-record XML string?
>>
>>Thanks
>>Kev
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform