1 Reply Latest reply on Aug 22, 2017 5:20 AM by Zhouyi Zhang

    Fetch Field value

    Manigandan N

      Hi All,

       

      The javascript Field class currently has exposed the following functions/properties.

       

      getName()

      string

      Gets the field name (i.e. caption).

      getAggregation()

      FieldAggregationType

      Gets the type of aggregation, which is one of the following values: SUM, AVG, MIN, MAX, STDEV, STDEVP, VAR, VARP,COUNT, COUNTD, MEDIAN, ATTR, NONE, YEAR, QTR, MONTH, DAY, HOUR, MINUTE, SECOND, WEEK, WEEKDAY, MONTHYEAR, MDY, END, TRUNC_YEAR, TRUNC_QTR, TRUNC_MONTH, TRUNC_WEEK, TRUNC_DAY, TRUNC_HOUR, TRUNC_MINUTE, TRUNC_SECOND, QUART1, QUART3, SKEWNESS, KURTOSIS, INOUT, USER

      getDataSource()

      DataSource

      Gets the data source to which this field belongs.

      getRole()

      FieldRoleType

      One of the following values: DIMENSION, MEASURE, UKNOWN

       

      I would like to get the "VALUE" for the given field.

       

      Something like the following:

      getValue()

      FieldValue

      Gets the field value.

       

      It would very helpful if you could suggest a way to get the value. JavaScript APIDeveloper PortalIdeasForums