Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

...

5. Expressions

description: Expression that describes entity info on header when window is in edit mode. Expression is text that defines what should be displayed. Expressions is used by system in many occasions (like window header, tree node etc.) Expression uses field names defined in entity model. In expression you can use    - # -

5.1. Avalible expression elements

...

#

...

This operator indicates usage of field name. Ex. <option type="expression" value="#userName"/>

    - ' - static text. Ex. <option type="expression" value=" 'hello' "/>

    - + - , ex. "#userName"

...

static text

...

Static text in expression, ex. 'hello'

...

+

...

This operator concats two subexpressions. Ex. <option type="expression" value=, ex. "#userName + '(' + #userLogin + ')'"/>    - [ -

...

[ and ]

...

use it when you want to get one of fields of corresponding entity (see  [belongsTo field|confluence/display/QCDMESDOC/Model+Definition+Overview#ModelDefinitionOverview-belongsTo||||||||||||]). Ex. <option type="expression" value=" #substituteName + ' -' + #product['productName'] "/>ModelDefinitionOverview-belongsTo), ex. "#product['name']"