3 Replies Latest reply: May 12, 2017 12:20 AM by Erik Wetterberg RSS

    creating extension gives 'undefined' error.

    Rebekah Beets

      I am using qliksense desktop and the devhub on 4848 to follow tutorials to create my first extension. However, I have been stumped for 3 days by this error. It happens when I click to select a dimension or measure.

      createExtError.PNG

       

      Contents of the js file:

      define(["jquery", "text!./com-qliktech-helloworld.css","./d3.min"], function($, cssContent) {"use strict";

        $("<style>").html(cssContent).appendTo("head");

       

        return {

        initialProperties : {

        version: 1.0,

        qHyperCubeDef : {

        qDimensions : [],

        qMeasures : [],

        qInitialDataFetch : [{

        qWidth : 4,

        qHeight : 1000

        }]

        }

        },

        definition : {

        type : "items",

        component : "accordion",

        items : {

        dimensions : {

        uses : "dimensions",

        min : 2,

        max : 2

        },

        measures : {

        uses : "measures",

        min : 2,

        max : 2

        },

        sorting : {

        uses : "sorting"

        },

        settings : {

        uses : "settings"

        }

        }

        },

        paint : function($element,layout) {

        console.log($element);

        console.log(layout);

              }

        };

      });