Copy and rebuild the default template set

For all examples, you must create a new template set from which applications can be generated.

  1. Copy the entire content of the template directory (for example, $GSTDIR/bin/src/ag/tpl/dbapp) to a new directory. The new template directory could be a common one on the server or it could be part of the entire versioned project.
    You may also create a new empty directory to which you can add the template files one at as time as you create them.

    Ensure that you have write access to the new directory.

  2. Determine which configuration you want to use to run your generated applications. Select the configuration. Then, select Tools > Genero Configurations.
  3. Find and select the Template Environment Set. Deselect the check box to deactivate the old template.
  4. Make a copy of the Template environment set using the Duplicate action in the integrated Toolbar.
  5. Rename your template environment if you wish by right-clicking on it and selecting Rename.
  6. Select your template environment set. Notice that there are environment variables set.
  7. Modify GSTSETUPDIR. Double-click GSTSETUPDIR in the list and modify the Value to point to the location of your template files.
  8. Select OK.
  9. In the Environment Sets list, select the check box for your environment set.
    Figure: Select new environment set

    Setting new environment set
  10. Go to the template directory and open the project file, for example, libdbapp.4pw.
  11. Right-click on the application node and select Rebuild All.

Now you can customize the files that you copied into the new directory. Keep the same file names as the default template set. All your programs will be generated with these files; the default files will be ignored.