Skip to content

Interface

Single expression. A single expression may contain multiple parts. For example,

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
// avg({field1})
{
name: 'exp1',
parts: [
  { type: FUNCTION, exp: 'AVERAGE' },
  { type: OPERATOR, exp: '(' },
  { type: FIELD, exp: '{field1}', dataSourceId: ds1, jimuFieldName: field1 },
  { type: OPERATOR, exp: ')' }
 ]
}

Properties

PropertyTypeNotes
namestring

Name of the expression.

numberFormatFormatNumberOptions

Format of the number results. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat for more details.

partsExpressionPart[]

Expression parts.

name

Interface Property

numberFormat

optional
Interface Property

parts

Interface Property

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.