Versions Compared

Key

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

Table of Contents


English
Panel
borderColorpurple
bgColorwhite
borderWidth1
titleBGColor#ddccff
borderStylesolid
titleNew Feature

This is a new feature in Joget DX 8.

Introduction

The Property Assistant is a new feature in Joget DX 8, that allows you to insert Hash Variables, Regular Expressions and URLs in any form element, UI element or list.

...

There are currently 2 UI Menu URLs to choose from seen in the table below.

NameDescription
MENU_IDA relative menu URL with just the menu ID
#request.baseURL#/web/userview/MenuId/UI/_/MenuIdA full absolute UI menu URL with app ID, UI ID, UI key and menu ID

Regular Expressions

The Property Assistant also supports Regular Expressions (Figure 7). 

...

Some regular expressions (identifiable with the pink text colour.) attributes can be replaced with an attribute of your choosing with the help of the property assistant (Figure 7). These dynamic attributes can be replaced with any other character, RegEx token or RegEx.

Character Classes

RegExDescription

[abc]

Matches an a,b or c character.

Note that the characters a,b or c can be replaced with any other character with the help of the property assistant.

[^abc]

Matches any character other than an a,b or c.

Note that the characters a,b or c can be replaced with any other character with the help of the property assistant.

[a-z]Matches any between a and z, Including a and z.
[A-Z]Matches any character between A and Z, Including A and Z.
[z-zA-Z]Matches any character between a-z and A-Z.
[a-zA-Z0-9]Matches any letter or digit
[0-9]Matches any digit.
[[:ascii:]]Matches any character in the valid ASCII range.
[[:blank:]]Matches spaces and tabs but not newlines.
[[:cntrl:]]Matches characters that are often used to control presentation, including newlines, null characters, tabs and the escape character.
[[:punct:]]Matches characters that are not whitespace, letters or numbers.

Token

RegExDescription
^Matches the start of a string without consuming any characters.
$Matches the end of a string without consuming any characters.
\nMatches a newline character.
\rMatches a carriage return (Unicode character code +2185).
\tMatches a tab character
\sMatches any space, tab or newline character.
\SMatches any character except a space, tab or newline character.
\dMatches any digit.
\DMatches any character except digits.
\wMatches any letter, digit or underscore.
\WMatches any character except letter, digit or underscore.
\XMatches any valid Unicode Sequence, including line breaks.
.Matches any character other than newline, including line terminators than end with the "\s" token.
a|b

Matches either a or b. 

Note that characters a or b can be replaced with any other character with the help of the property assistant.

Quantifiers

RegExDescription
a?

Matches an "a" character or nothing.

Note that the character "a" can be replaced with any other character with the help of the property assistant.

a*

Matches zero or more consecutive "a" characters.

Note that the character "a" can be replaced with any other character with the help of the property assistant.

a+

Matches one or more consecutive "a" characters.

Note that the character "a" can be replaced with any other character with the help of the property assistant.

a{3}

Matches exactly three consecutive "a" characters.

Note that the character "a" and the range "3" can be replaced with any other character with the help of the property assistant.

a{3,}

Matches at least three consecutive "a" characters.

Note that the character "a" and the range "3" can be replaced with any other character with the help of the property assistant.

a{3,6}

Matches between three and six (inclusive) consecutive "a" characters.

Note that the character "a" and the range "3,6" can be replaced with any other character with the help of the property assistant.

Commonly Used

RegExDescription
^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*$Matches common email pattern.
^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#()?&//=]*)$Matches the common URL pattern.

Related Documentation

...