Create a managed project

Use the Simple BAM Desktop Project (.4pw) template to create your managed project.

Before you begin, select Tools > Genero Configurations and confirm that the template of your choice is selected in the Environment Sets list. The selected template will be the code generation template used for the project.
Tip: Unless you have a known reason to do otherwise, select the latest available template. Starting with dbapp4.0, you must also select between a Desktop and a Mobile version of the template.
  1. Select File > New... > Genero BAM Desktop > Simple BAM Desktop Project (.4pw) and click OK. An unsaved project displays in the Projects view. When you create a managed project, nodes for the basic structure of the project are already defined and automatically contain the additional build rules needed for generated programs. The project structure has predefined nodes to contain the files for your project:
    • Application - for the program and form files, and any additional source code files
    • Databases - for the Genero database schema files (4dbx)
    • Library - for any additional resource files
  2. Right-click on the Application node and select Advanced Properties from the menu. Note that the dependencies for the Databases and Library nodes have already been set, ensuring that any files they contain will be included in your application.
  3. In the Advanced Properties dialog, add an FGLPROFILE environment variable to the Environment Variables page.
    1. Select Environment Variables.
    2. Under the User Variables section, click the green cross icon.
    3. In the Environment Variable dialog, add the FGLPROFILE user variable. Specify a type of "File List", and have the Value point to the location of the fglprofile file provided in the My Genero Files/samples/OfficeStoreRes/ directory.

      This figure is a screenshot of the Environment Variable dialog.

      Figure 1. Edit environment variable dialog

      The FGLPROFILE file contains the configuration information to access the sample databases.
    4. Click OK to close the Environment Variable dialog.
    5. Click OK to save and close the Advanced Properties dialog.
  4. Using the File > Save … as menu, save the project with a unique name (such as TestSimpleBAM.4pw) to a folder on your file system.