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.
- 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.
-
Select Tools > Genero Configurations.
The Genero Configuration Management dialog opens.
- Under Configuration Name, select a mobile configuration (Android™ or iOS).
-
Edit the FGLPROFILE environment variable.
-
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".
-
In the Environment Variables section,
double-click on the FGLPROFILE variable.
The Environment Variable dialog opens.
- In the Value field, enter the location of the FGLPROFILE file provided in the config directory of your project directory.
-
Click OK to close the Environment
Variable dialog.
The FGLPROFILE environment variable is updated.
-
Under Environment
Sets, right-click on "Profile" and select
Duplicate.
-
Add the DBPATH environment variable.
-
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".
- In the Environment Variable section, click the green plus icon.
- In the Environment Variable dialog, specify a Type of Directory List and a Name of DBPATH.
- In the Value field, enter the database directory of your project directory ($ProjectDir/database). Click OK.
-
Click OK to close the Environment
Variable dialog.
The DBPATH environment variable is added to the environment set.
-
Under Environment
Sets, right-click on "DB-SQLite" and select
Duplicate.
- Ensure the checkboxes for the "Profile - MobileTest" and "DB - SQLite - MobileTest" environment sets are selected (checked).
- Click OK to close the Genero Configuration Management dialog.