Expression

Interface

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

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
string

Name of the expression.

FormatNumberOptions

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

Expression parts.

name

Interface Property
name: string

Name of the expression.

numberFormat

optional
Interface Property
numberFormat: FormatNumberOptions

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

parts

Interface Property
parts: ExpressionPart[]

Expression parts.

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