Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to put these objects (3-tier question, again)
Message
From
15/01/2003 12:19:53
 
 
To
15/01/2003 11:53:18
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00741808
Message ID:
00742004
Views:
24
This message has been marked as a message which has helped to the initial question of the thread.
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
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform