Author: Ed Leafe
Posted: 1999-02-14 at 10:45:37
<I><FONT COLOR="#663300">Not being in the centre of the Coding community this may seem an odd question but I am not sure of the distinctions between USER Services, BUSINESS Services and Data services.</FONT></I>
I see that Bob has already given you a good explanation of the different services, or tiers, in Codebook.
<I><FONT COLOR="#663300">USER or BUSINESS
In the CB world Is a Combobox in a bizobj Proper to a user service or a Business Service. If this same cbo is directly in a formobj is its theoretical classification different.</FONT></I>
This is one of the problems with Codebook as it originally existed: it mixed the elements of the presentation layer and the business layer. Its examples included bizobjs with contained controls; even the choice of basing the cBizobj class on the VFP base class of "Container" instead of "Custom" reflects this design.
The important thing to remember is that there is absolutely nothing in Codebook which <I>requires</I> that you mix the two. I have created many apps with non-visual bizobjs, and they work perfectly well.
<I><FONT COLOR="#663300">BUSINESS or DATA
As business object undertake the creation and saving of the views data in CB are they Data services or Business services.</FONT></I>
They are business services, but the actual saving, requerying and opening of views does not take place in the bizobj, but rather in the DataBehavior object to which the bizobj has a reference. That way if you ever wanted to work with a data source which did not lend itself to VFP views, you could write a new DataBehavior class to handle the translation, and the bizobjs would work without change.
<font color="#cc0000"> ___/
/
__/
/
____/</font>
Ed Leafe