1 Reply Latest reply: May 12, 2017 12:11 PM by Anirudh Rapthadu RSS

    Extension creation throws error

    Rebekah Beets

      I am learning how to create an extension. I have made it to where the buttons for adding dimensions and measures show up, but they throw an error when i go to select.

       

      createExt.PNG

       

      clicking on a field gives me this... (qInterColumnSortOrder error)

      createExtError.PNG

       

      Here is the js code:

      (It says hello world, but im actually doing the two dim scatter tutorial.)

       

      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) {

       

       

        }

        };

       

       

      } );