Hi Lynette,
<i><font color="#663300">I'm sure I will read these Docs over and over before I really --- GET IT</font></i>
You will. You will also want to spend a fair amount of time stepping through the Codebook code in the debugger. It is one of the best ways to understand what is going on.
<i><font color="#663300">I have been learning from Whil Hentzen's books especially Fundamentals...</font></i>
Great move. One of the most difficult things about learning VFP and a framework at the same time is being confused about which behaviors belong to VFP and which belong to your framework. Whil's book helps clear some of that up.
<i><font color="#663300">Codebook appears to completely throw out the VFP Data Environment -- correct?</font></i>
Not really. Codebook doesn't use the data environment that is natively attached to a form. Instead it uses a dataenvironment that is defined in code (cDataEnv.prg) and attaches it to a business object at runtime via the cDELoader object on the cBizObjForm.
<i><font color="#663300">And extensively uses VIEWS to base forms on.....</font></i>
Using views is just good data integrity practice. You can use views in the native data environment just as you can use them in the programatically defined data environments used by Codebook.
<i><font color="#663300">How do I get the view to pop up in the Data tab of the properties so that I can easily find the control source for the controls I need to build on my forms</font></i>
Once the view is defined in the database, it is available in the data tab of the Project Manager (not the Properties window)
<i><font color="#663300">Geof's example simply drags the textbox controls from the project's data tab which then uses VFP's base class (not what I want to do)</font></i>
Unless you have defined the icontrls (or icustcontrls) as the defaults for their appropriate data types (in the field mapping tab of Tools/Options) you will be dragging and dropping native VFP controls to your form, not Codebook controls.
<i><font color="#663300">do you find it better to create a single view incorporating 2 or more tables or to put the cursors for multiple single table views in the ibizobj subclass for the form? </font></i>
Ed has a very important rule (which I broke once and never will again) Only one updatable table per view and only one updatable view per business object.
:-) Pamela pamela (AT) eagle-crest DO.T com ©2001 Pamela Thalacker |