Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace MacroPivotField

MacroPivotField is used for the PivotField with macro expressions. It can contain the rules according to the macro pattern/attribute added and create new fields according to the PivotKeyValues

Properties

Optional columnNamePattern

columnNamePattern: undefined | string

column name pattern can be used to generate the name structure of the generated columns. By default column names are of %PIVOT_KEY_VALUE% or %MACRO_INPUT%%PIVOT_KEY_VALUE%, but we can change it something by passing something like MY_PREFIX%PIVOT_KEY_VALUE%MY_SUFFIX or MY_PREFIX%MACRO_INPUT%%PIVOT_KEY_VALUE%MY_SUFFIX which will add custom prefix and suffix to the column name.

Optional expr

expr: model.Expression

Optional isUseSourceType

isUseSourceType: undefined | false | true

Specifies whether the type of macro fields is inferred from an expression or useType (false) or the source field (true).

Optional type

Optional useType

useType: model.ConfiguredType

Functions

getDeserializedJsonObj

getJsonObj