2 Replies Latest reply: Oct 6, 2016 8:06 AM by Patric Amatulli RSS

    Extension - Custom Attributes for NxDimension

    Patric Amatulli

      Hi,

       

      we are developing our extension and we would like to define custom attributes on dimensions and measures.

      We saw that we have the so called qAttributeExpression property for our NxDimension object, but we do not know how is the correct syntax for our definition file.

       

      qAttributeExpression

      List of attribute expressions.

      Array of NxAttrExprDef

       

      For the measure there exists the qAttributeExpressions Property on the NxMeasure object and it works fine as follow:

       

       

      measures : {

        uses : "measures",

        min : 1,

        items: {

              Dummy: {

                   type: "string",

                   ref: "qAttributeExpressions.0.qExpression",

                   label: "Low Error Value",

                   expression: "always",

                   defaultValue: ""

              }

        }

        },

       

      We tried various version but neither of then works for the Dimension`!

      i.e.

       

       

      dimensions : {

        uses : "dimensions",

        min : 1,

        items: {

          Test: {

              type: "string",

              ref: "qAttributeExpression.0.qExpression",

              label: "test",

              expression: "always",

              defaultValue: ""

                            }

        }

        },

       

       

       

      How is the approach for the dimensions, can somebody assist please.

      We would like to progress with the development of the extension and we get stuck on this point!

       

      Update 26.09.2016:

      Attached an example of what we would like to achieve, based on the Qliksense standard table chart.
      Here we have a row level custom attribute like text color on dimension level.

       

       

      Thanks and regards,

      Patric