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 a time as you create them.
    Note:

    Ensure that you have write access to the new directory.

  2. Select the configuration you want to use to run your generated applications. For more information go to Change the active configuration.
  3. Select Tools > Genero Configurations.
  4. Find and select the Template Environment Set. Deselect the check box to deactivate the old template.
  5. Make a copy of the Template environment set using the Duplicate action in the integrated Toolbar.
  6. (Optional) To rename your template environment, right-click on the template and select Rename.
  7. Select the new template environment set. Notice that there are environment variables set.
  8. Double-click GSTSETUPDIR in the list and modify the Value to point to the location of your template files.
  9. Select OK.
  10. In the Environment Sets list, select the check box for your environment set.
    Figure: Select new environment set

    Setting new environment set
  11. Go to the template directory and open the project file, for example, libdbapp.4pw.
  12. 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.