Escaping the Resultant Hash Variable

The parsed/returned Hash Variable may cause incompatibility with the current context/environment such as syntax error in a script. Therefore, one may pass in additional parameters into the hash variable declared to escape certain characters.

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.

To get activityDefId (activity definition ID), mouseover the activity name in the Activity Mapping tab (Workflow Management Console); there will be an overlay showing the ID.

Warning

The activity chosen must had already been performed.

Sample Attributes

#performer.runProcess.firstName#

#performer.submitLeave.firstName#

Request Parameter Hash Variable

Name

Description

Prefix

requestParam

Description

To access request parameter' values.

Attributes

#requestParam.parameterName[separator]#

Separator (, or ;) can be indicated if requestParam is used in datalist filter with multiple values, to define the separator character in data output. Comma "," is used as default if no separator is indicated in cases of multiple values.

#requestParam.name[;]# to indicate 'name' variable will store multiple values separated by semicolon. For example, this SQL statement "select * from expenses where title in (#requestParam.title[,]#)" will be translated to "select * from expenses where title in (a,b,c)" to cater for multiple values in "where-in" statement.

In a Userview page, one may access the following attributes.

#requestParam.key#

#requestParam.userviewId#

#requestParam.menuId#

#requestParam.appId#

User Hash Variable

Name

Description

Prefix

user

Description

To get user information based on username.

Attributes

#user.username.id#

#user.username.username#

#user.username.firstName#

#user.username.lastName#

#user.username.email#

#user.username.active#

#user.username.timeZone#

Scope of Use

All components within the App.

Sample Attributes

#user.admin.email#

#user.cat.firstName#

#user.{requestParam.username}.email# to retrieve the email address of the user passed via url parameter

Userview Key Hash Variable

Name

Description

Prefix

userviewKey

Description

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

Typical use case for this hash variable are:-

Filtering a Datalist based on Userview Key.

Preloading certain form data field (e.g. subform) in a Form or Form part of a process flow based on Userview Key.