0 Replies Latest reply: Apr 7, 2016 6:40 PM by Ivan Falcão RSS

    Extension - Access items properties

    Ivan Falcão

      Hello

       

      I´m trying to create a field type item (qLink) inside a measure for an extension. However I´m not capable to access this parameter from the hypercube

       

      define( [], function ( ) {
        var palette = [
              "#b0afae",
              "#7b7a78",
              "#545352",
              "#4477aa",
              "#7db8da",
              "#b6d7ea",
              "#46c646",
              "#f93f17",
              "#ffcf02",
              "#276e27",
              "#ffffff",
              "#000000"
          ];
        return {
             type: "items",
             component: "accordion",
             items: {
             measures: {
             uses: "measures",
             min: 1,
             max: 50,
             items: {                                        
                  qLink: {                            
                       type: "string",                  
                       ref: "qLink",                    
                       label: "Link da medida",
                       expression: "always",            
                       expressionType: "dimension"
                  }
             }
        },
           ... 
      

       

      I have already tried:

       

      this.backendApi.eachDataRow(function(rownum, row) {
           measurerows = row;
      });
      html +=measurerows[1].qMeasureInfo;
      

       

       

      And

       

      layout.qHyperCube.qDataPages[0].qMatrix[0][i]
      

       

      However no success....

       

      Anybody knows how to access this information?

       

      Thanks for the help