Versions Compared

Key

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

Table of Contents

Related Documentation 

Generate Reference ID

Introduction

The ID Generator Field is used to produce a running number based on an App Variable.  To learn more about its usage, refer to Generate Reference ID.

...

  1. Start the Joget Server and open the App Center.

  2. Log in as admin and click on the pencil icon on the Expenses Claim to open the Design App. (see Figure 1)
    Image Removed
  3. Image Added

  4. Figure 1

  5. Under FORMS column, click on Expense Claim New (see Figure 2)


    Figure 2

  6. Hover the mouse over the Click on  the ID Generator Field element on the canvas and click on text to open up the Edit Configure ID Generator Field properties. (see Figure 3)
    Image Removed
    Image Added
    Figure 3

  7. Take note of the Format

  8. To see it working, head back to the Design App and click the Launch button in the UserviewUI column.

  9. Click on Create a New Expense Claim button on the Dashboard, fill up the necessary details and click Continue Next Screen button. 

  10. Click on Save As Draft button.

  11. Go to My Expenses on the menu to the left and click on My Inbox.  Here you can see the ID generator has generated a 4 digit running number (as defined in the Format field in steps 4 & 5) under the # column. (see Figure 4)
    Image Removed
    Image Added
    Figure 4

ID Generator Field Properties

...

NameDescription
Hidden?

Determines if the element should be made visible in the form.

Workflow Variable

If the form is part of a workflow process, upon saving of the form (by clicking on "Save as Draft" or "Complete" button). The value in this input field will 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 log if you attempt to map to a non-existent Workflow Variable.

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


Related Documentation 

Generate Reference ID