Set the environment variables

The database connection for this quick start requires the FGLPROFILE and DBPATH environment variables. FGLPROFILE specifies the configuration file that provides access to the sample databases. DBPATH specifies the location of the database file at runtime.

  1. Select the fglprofile file located in the samples/OfficeStoreRes/ directory. The samples directory can be found under Documents/My Genero Files (on Windows®) or genero-files (on macOS™). Copy it to the config directory of your project directory, replacing the existing file.
  2. Select Tools > Genero Configurations.
    The Genero Configuration Management dialog opens.
  3. Under Configuration Name, select a mobile configuration (Android™ or iOS).
  4. Edit the FGLPROFILE environment variable.
    1. Under Environment Sets, right-click on "Profile" and select Duplicate.
      An environment set called "Profile_2" is created. Double-click on "Profile_2" and rename it to "Profile - MobileTest".
      Figure: Duplicate the Profile environment set

      This figure is a screenshot of the Genero Configuration Management dialog, highlighting the "4.00.02 Android" configuration and the "Profile - MobileTest" environment set.
    2. In the Environment Variables section, double-click on the FGLPROFILE variable.
      The Environment Variable dialog opens.
    3. In the Value field, enter the location of the FGLPROFILE file provided in the config directory of your project directory.
    4. Click OK to close the Environment Variable dialog.
      The FGLPROFILE environment variable is updated.
  5. Add the DBPATH environment variable.
    1. Under Environment Sets, right-click on "DB-SQLite" and select Duplicate.
      An environment set called "DB - SQLite_2" is created. Double-click on "DB - SQLite_2" to rename it to "DB - SQLite - MobileTest".
    2. In the Environment Variable section, click the green plus icon.
    3. In the Environment Variable dialog, specify a Type of Directory List and a Name of DBPATH.
    4. In the Value field, enter the database directory of your project directory ($ProjectDir/database). Click OK.
    5. Click OK to close the Environment Variable dialog.
      The DBPATH environment variable is added to the environment set.
  6. Ensure the checkboxes for the "Profile - MobileTest" and "DB - SQLite - MobileTest" environment sets are selected (checked).
  7. Click OK to close the Genero Configuration Management dialog.