...
What are Hash Variables?
English |
---|
Hash Variables give users greater flexibility and freedom in accessing useful information or relevant run-time values from the systemvariables 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 itself. They 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 :
...
Figure 2: Property Assistant - Nested Hash Variable
List Of Joget DX Hash Variables
...
System-wide Hash Variable
...
Panel |
---|
...
|
...
|
...
|
...
To get workflow activity information of the current assignment.
...
- #assignment.processId#
- #assignment.processDefId#
- #assignment.processDefIdWithoutVersion#
- #assignment.processName#
- #assignment.processVersion#
- #assignment.processRequesterId#
- #assignment.appId#
- #assignment.activityId#
- #assignment.activityName#
- #assignment.activityDefId#
- #assignment.assigneeId#
...
- Elements within and part of a Process.
- Activity Name.
- Form mapped as part of process activity mapping.
- Email Tool configuration as part of process tool mapping.
...
To display the assignee's name:
#user.{assignment.assigneeId}.firstName# #user.{assignment.assigneeId}.lastName#
| |||||||||
This is a new feature in Joget DX 8.2. |
The System Variables menu introduces system-wide Hash Variables, which allows users to create and define custom hash variables that can be used in Property Assistant. This means that system-wide hash variables can be used in any app as it is not tied to any specific app.
System-wide Hash Variables can be accessed in Property Assistant using the #sysVariable.KEY# hash variable, where KEY is defined in the System Variables settings page.
List Of Joget DX Hash Variables
Workflow Assignment Hash Variable
Name | Description |
---|---|
Prefix | assignment |
Description | To get workflow activity information of the current assignment. |
Attributes |
|
Scope of Use |
|
Sample Attributes | To display the assignee's name: #user.{assignment.assigneeId}.firstName# #user.{assignment.assigneeId}.lastName# |
Workflow Process Hash Variable
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
|
Workflow Process Hash Variable
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
A new #process.recordId# hash variable was introduced in Joget DX to retrieve the process database table id (or primary key value) which will return the UUID id value of the process record stored in app_fd_[form_table_name], if the General Settings > Run Process Primary Key is set to "UUID". If the "Run Process Primary Key" option in General Settings is set to "Process instance ID", the "#process.recordId#" will return the same value as "#process.processId#". Read related documentation: |
...
Name | Description |
---|---|
Prefix | userviewKey |
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:-
|
Attributes |
|
Scope of Use |
Workflow Variable Hash Variable
...
Name | Description | |||||
---|---|---|---|---|---|---|
Prefix | beanshell | |||||
Description | Using App Variable to execute bean shell script. Passing parameter using URL query string syntax. | |||||
Attributes |
| |||||
Scope of Use |
| |||||
Sample Attributes | To execute a script stored in the "welcome" app variable with parameter "username" and "dept":
| |||||
Related Tutorials |
...
Name | Description |
---|---|
Prefix | reportLink |
Description | To retrieve the particular report based on the reportId. To know more about Report Builder, see here. |
Attributes |
|
Scope of Use |
|
Sample Attributes |
|
Code Builder Hash Variable
...
To retrieve the template based on the code snippet ID.
...
- #code.cs-templateId#
...
- All components within the App.
...
- #code.cs-calculationScript#
the reportId. To know more about Report Builder, see here. | |
Attributes |
|
Scope of Use |
|
Sample Attributes |
|
Code Builder Hash Variable
Name | Description |
---|---|
Prefix | code |
Description | To retrieve the template based on the code snippet ID. |
Attributes |
|
Scope of Use |
|
Sample Attributes |
|
uiListCount Hash Variable
Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
This is a new feature in Joget DX 8. |
Name | Description | ||
---|---|---|---|
Prefix | uiListCount | ||
Description | The uiListCount hash variable is primarily utilized to retrieve the Datalist or Inbox menu count value. | ||
Attributes |
| ||
Scope of Use |
| ||
Sample Attributes | See examples below, based on the usage within the default CRM application:
|
Escape Format
...
Hash Variable
Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
This is a new feature in Joget DX 8. |
Name | Description |
---|---|
Prefix | uiListCount |
Description | The uiListCount hash variable is primarily utilized to retrieve the Datalist or Inbox menu count value. |
Attributes |
|
Scope of Use |
|
Sample Attributes | See examples below, based on the usage within the default CRM application:
|
Escape Format Hash Variable
Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
This is a new feature in Joget DX 8. |
?decimal(decimal_number) | |||
Description | The escape format hash variable used to allow the formatting of decimal places.
| ||
Attributes |
| ||
Scope of Use |
| ||
Sample Attributes |
|
Stats Hash Variable
Name | Description | ||
---|---|---|---|
Prefix | stats | ||
Description | Display various Joget system and app statistics. | ||
Attributes |
| ||
Scope of Use |
| ||
Sample Attributes |
| ||
Name | Description | ||
Prefix | ?decimal(decimal_number) | ||
Description | The escape format hash variable used to allow the formatting of decimal places.
| ||
Attributes |
| ||
Scope of Use |
| ||
Sample Attributes |
|
Hash Variables In Joget Marketplace
...
Download Demo App
View file | ||||
---|---|---|---|---|
|