Versions Compared

Key

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

...

What are Hash Variables?

English

Hash

Variables give users greater flexibility and freedom in accessing useful information or relevant run-time values from the system.

Hash variable is a placeholder used to dynamically display data from various sources within your application. It allows you to insert dynamic content without hardcoding values, making your applications more flexible and customizable.

Key Uses of Hash Variables in Joget:

Fetching Form Data:

Retrieve and display data from form fields.plaintext
#form.formId.fieldId# Example: #form.myForm.name# gets the value from the "name" field in the form "myForm".

Accessing Workflow Variables:

Display values from workflow variables.plaintext
#variable.variableId# Example: #variable.requesterName# gets the value of the "requesterName" variable.

System Information:

Get details like the current date or logged-in user info.plaintext
#currentUser.username# #date.today#

Example Uses:

Personalized Email Content: Use hash variables to customize automated emails.

plaintext
Hello #form.requestForm.name#, Your request submitted on #date.today# has been approved.

Dynamic User Interface: Show different content based on user input or workflow state.

plaintext
{% if #form.feedback.rating# >= 4 %} Thank you for your positive feedback! {% else %} We're sorry to hear that. Please tell us how we can improve. {% endif %}

Summary

Hash variables in Joget make your applications dynamic by allowing you to fetch and display data from

variables in Joget are placeholders used to dynamically display data within applications. They allow users to insert dynamic content without hardcoding values, which enhances flexibility and customization. Hash variables can fetch and display data from various sources such as forms, workflows, and the system

, without hardcoding values

itself. They

help create flexible and user-friendly

promote customization and flexibility by avoiding hardcoded values, ultimately improving the user-friendliness of Joget applications.

A hash variable is a special hash-escaped keyword that can be used in :

...

NameDescription
PrefixuserviewKey
Description

Userview Key Hash Variable is used solely for the purpose of accessing the current UI key's value.

Typical use case for this hash variable are:-

  • Filtering a List based on UI Key.
  • Preloading certain form data field (e.g. subform) in a Form or Form part of a process flow based on UI Key.
Attributes
  • #userviewKey#
Scope of Use

Workflow Variable Hash Variable

...