Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

English

Environment Variables are used to store commonly used parameters or settings in the application. Storing commonly used values in one place eases the migration and maintenance of the application developed. Environment variables can be retrieved by using the Environment Variable Hash Variable.

One can make use of the Environment Variable to store commonly used values in places like Email Tool, Database Update Tool, and so on. Doing so makes it easier to manage setting/configuration changes.

Info
titleApp Variable = Environment Variable

Take note both App Variable and Environment Variable perform the same function

Image Modified
Figure 1: Properties & Export

...

ID Generator Field Properties

Edit ID Generator Field

Image Added

Figure 1: Add Env Variable

NameDescription
ID
Form field

Env variable id. Only

alpha-numeric and underscore characters allowed. Mandatory field.

If you use "id", the form will save with the "id" primary key in running sequence. Joget will not create the "id" in UUID format.

letters (a-z and A-Z), numbers (0-9) and underscore (_) are allowed in the ID field. ID cannot have space. Mandatory field.

RemarksOptional, typically used as remarks to Joget

Image Removed

Figure 1: Add Env Variable

RemarksOptional remarks to
developers.
Value

Environment Variable value. Can be a number or a static value or a piece of software code (HTML, CSS, Javascript, Java, etc.).


Hash Variables

You can use Hash Variable to reference a value in Environment Variable.


Related Links


Cautions And Warnings

When importing apps into a new Joget platform, for example from development to production server, do update all the environment values you may have defined; IP addresses, domain name, database connection strings values, etc.

However, if it is an existing app in a production server, do be careful not to change any environment variable counters that are link linked to your form's "ID Generator Fields". This may affect the running numbers in the form's new records.

If you are using the ID Generator Field as "id", meaning it is a primary key value, be careful not to override the environment variable value when inporting importing apps: do not click the "Show Advanced Show Advanced Options > Override > Override environment variables" checkbox in Import App screen.

...