Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modifying the generic project questions (newbie)
Message
 
To
03/01/2002 14:22:32
Paul Williamson
Williamson Enterprises, Inc.
Livingston, Montana, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00600425
Message ID:
00600443
Views:
27
Paul,

>1)- I boot up VFP7 and start up MM by CD or Set Default to the projmgr6 dir where I have MM installed (g:\vfpdev\myappname\projmgr6) and run startmm, open up the generic project located in the generic directory. Sound right? If I try to run startmm in the generic dir it bombs because it can't find builderb, etc...

That's usually the best way to start.

>2)- I, of course, need to create new tables and views. Do I add these to the generic database, or create my own?

If you want them to auto-magically appear in all applications created by QuickStart, add them to the Generic database.

>3)- The reason I asked the last question is because I can not create a data environment for my new table. I am following the steps in the jump start guide (using the builder), and referring to the appropriate sections in the dev guide. I successfully create a business object and am now trying to create a data environment for it. I press the new icon under "Data Environment Settings" box. The "Based On" defaults to "projmgrenvironment". I fill in the rest, hit okay. When I then try and add my view, it is not listed. It appears that all the views listed are from the projmgr project, not the generic project. What am I doing wrong?

Data environments are a bit trickier than other classes...this is because the Generic project's base data environment class "environment" cannot be edited directly with VFP. The "" portion of the name is invalid as far as VFP is concerned...it gets replaced by the name you specify in QuickStart.

ANYWAY, if you want to create your own data environment classes for the Generic project, do the following:

FIRST, make a backup of the Generic project!!!

1. Create a temporary project (or use an existing project created by QuickStart) and set up the tables/views, in this project (you'll also need to add these to the Generic project)

2. Set up the data environments in this same temporary project

3. Open the Generic project and temporarily add the data environment library you used in step 2 to the Generic project.

4. Copy the new data environment classes from your temporary class library into the Generic project's ADataEnv.vcx library by dragging and dropping it in the Project Manager.

5. Close the Generic project and your test project

6. Launch the VCX Editor, and open the Generic project's ADataEnv.vcx library. Change the parent class of all new data environments to the Generic project's environment. You do this by setting the "Class" on page 1 of the VCX Editor...use the ellipses button to select the class.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform