Versions Compared

Key

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

Table of Contents


Introduction

ID Generator Tool allows one to increase value stored in Environment Variable by one. It is very often used to generate/keep a running number (e.g. application reference number).

...

Edit ID Generator Field

NameDescription
ID

Key in the field id. 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

FormTarget form. The form selected will be used for "Field ID" attribute below

.

Figure 1: ID Generator Tool Properties

Field IDOptional field. You may specify a form field ID to be updated.
LabelKey in the label of this field.Mandatory fieldRecord IDOptional field. You may specify a record ID explicitly, otherwise, the process instance ID will be assumed.
Environment Variable Name

Name of the environment variable to be used to keep the running number. Joget will automatically create the environment variable in Properties & Export if the name does not exist.

Format

Determines the pattern of the generated value (e.g., "REF-?????" will yield "REF-00001").

HiddenClick the checkbox to hide this field in the form.
Workflow Variable

The value generated can be saved into the corresponding workflow variable named here.

Info
titleUsing a non-existent Workflow Variable name

You will get the following warning with the name printed out (e.g. status) in the server Joget log if you attempt to map to a non-existent Workflow Variable:

context attribute status does not exist in process context - adding new attributes to the process context is not allowed

...