Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Table of Contents | ||
---|---|---|
|
...
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Hash Variables gives users greater flexibility and freedom in accessing useful information or relevant run-time values from the system. A hash variable is a special hash-escaped keyword that can be used in :
to return the value of some useful runtime variables from Joget components. |
...
Code Block | ||
---|---|---|
| ||
#date.{envVariable.dateFormat}#
#user.{variable.username}.firstName#
#form.tableChild.field1[{form.tableParent.childId}]# |
You can pass an index or primary key value to a Hash Variable for retrieval.
The syntax for the inner Hash Variable is wrapped by a pair of [square brackets] .
Code Block | ||||
---|---|---|---|---|
| ||||
#form.myTable.fieldId.[primaryKeyValue]# |
Here are some examples:
Code Block | ||
---|---|---|
| ||
#form.contact.name.[007]# |
The parsed/returned Hash Variable may cause incompatibility with the current context/environment such as syntax error in a script.Therefore Therefore, one may pass in additional parameters into the hash variable declared to escape certain characters.Before Before ending a hash variable with a hash "#", add a question mark character "?" followed by the required format. You may include multiple by defining semicolon ";" separated values.
...
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
#envVariable.script?java# #envVariable.script?nl2br;json# #form.table.users?separator(, )# | ||||||||||
Panel | ||||||||||
| ||||||||||
nl2br and separator are new features in Joget v6. |
...