Versions Compared

Key

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

...

TokenUseDescription
#CURRENTUSER#PlaceholderDuring runtime, the logged-in user name is used for filtering
#CURRENTYEAR#PlaceholderDuring runtime, the current year is used for filtering

#LASTYEAR#

PlaceholderDuring runtime, the last year is used for filtering
#TODAY#PlaceholderDuring runtime, today is used for filtering
#YESTERDAY#PlaceholderDuring runtime, yesterday is used for filtering
#THISWEEK#Placeholder

During runtime, this week is used for filtering. Example:


Code Block
languagejs
{
  "title": "Edited by me this year",
  "key": "EditedByMeThisYear",
  "condition": "modifier=#CURRENTUSER# AND modified=#THISWEEK#"
}


#LASTWEEK#PlaceholderDuring runtime, the last week is used for filtering
#THISMONTH#PlaceholderDuring runtime, this month is used for filtering
#LASTMONTH#PlaceholderDuring runtime, the last month is used for filtering
#TARGETID#Placeholder

Target id (in most cases a folder) that is used in a reference tree as root id.

Supported since product version 5.16

#TARGETTYPE#Placehoder

Target type name that is used in a reference tree as root type.

Supported since product version 5.16

#CONTEXTID#Placeholder

Context folder id that is the common parent for a structure tree.

Supported since product version 5.16

#CONTEXTTYPE#Placeholder

Context folder type.

Supported since product version 5.16

YEARModifier

A field modifier that can be used on datetime or date fields. It provides access to the year value of the field.
Example:


Code Block
languagejs
{
  "title": "Edited in 2016",
  "key": "Edited2016",
  "condition": "modified(YEAR)=2016"
}


PARENTModifier

A field modifier that can be used to resolve a hierarchical catalogue node.
This example shows all children of nodes with the value Europe which may be its countries:

Code Block
languagejs
{
  "title": "Employees in Europe",
  "key": "EmpEurope",
  "condition": "personalfile.continent(PARENT)='Europe'"
}

It can be used for catalogue fields. The parent node itself is always included.

=Operator

Compares for equality.
Example:

Code Block
languagejs
"coditioncondition":"modifier=#CURRENTUSER#"


!=Operator

Compares two values. Result is true if they are not equal.
Example:

Code Block
languagejs
"condition": "modifier!=#CURRENTUSER"


<Operator

Compares two values. Result is true if the first value is less than the second one.
Example:

Code Block
languagejs
"condition": "version<4"


>Operator

Compares two values. Result is true if the first value is greater than the second one.
Example:

Code Block
languagejs
"condition": "version>1"


>=Operator

Compares two values. Result is true if the first value is greater than or equal to the second one.
Example:

Code Block
languagejs
"condition": "version>=1"

Since product version 5.8.

<=Operator

Compares two values. Result is true if the first value is less than or equal to the second one.
Example:

Code Block
languagejs
"condition": "version<=1"

Since product version 5.8.

ANDOperator

Logically combines two terms.
Example:

Code Block
languagejs
"condition": "doc.status!='new' AND doc.status!=null"


OROperator

Logically combines two terms.
Example:

Code Block
languagejs
"condition": "doc.status='started' OR doc.status='tobereworked'"


nullValue

Without value.
Example:

Code Block
languagejs
"condition": "doc.active=null"


falseValue

For comparing Boolean fields.
Example:

Code Block
languagejs
"condition": "doc.active=false"


trueValue

For comparing Boolean fields.
Example:

Code Block
languagejs
"condition": "doc.active=true"


[0-9]Value

Integer value.
Example:

Code Block
languagejs
"condition": "doc.amount>4711"


...