1 Reply Latest reply: Jun 30, 2016 7:22 AM by YVES BLAKE RSS

    Custom properties on measures

    Edgar Vazquez

      Hi, I try to catch a custom propertie value defined in measures, but I can´t  

       

      This is my Code

       

      definition: {
        type: "items",
        component: "accordion",
             items: {
                  dimensions: {
                       uses: "dimensions",
                       min: 1,
                       max: 2
                  },
                  measures: {
                       uses: "measures",
                       min: 1,
                       items: {
                            Eje: {
                                 type: "string",
                                 component: "dropdown",
                                 label: "Eje",
                                 ref: "qHyperCubeDef.eje",     // I try with qDef too :(
                                 options: [{
                                      value: "1",
                                      label: "Primario"
                                      }, {
                                      value: "2",
                                      label: "Secundario"
                                 }],
                                 defaultValue: "1"
                            },
                            Formato: {
                                 type: "string",
                                 component: "dropdown",
                                 label: "Formato",
                                 ref: "qHyperCubeDef.formato",
                                 options: [{
                                      value: "1",
                                      label: "Número"
                                      }, {
                                      value: "2",
                                      label: "Porcentaje"
                                      }, {
                                      value: "3",
                                      label: "Moneda"
                                 }],
                                 defaultValue: "1"
                            },
                            Sufijo: {
                                 ref: "qHyperCubeDef.sufijo",
                                 label: "Sufijo",
                                 type: "string",
                                 defaultValue: "",
                                 expression: "optional"
                            },
                            Color: {
                                 ref: "qHyperCubeDef.color",
                                 label: "Color",
                                 type: "string",
                                 defaultValue: "#000",
                                 expression: "optional"
                            }
                       }
                  },
      

       

      but in my Hypercube I don't see the properties!

       

      Capture.PNG

       

      thanks for the help