Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Visualization API

I am trying to use the Visualization API in an mashup and I get the following error;

"TypeError: Cannot read property 'create' of undefined(…)"

the app object doesn't contain any visualization object. Does anyone know why?

I have tried to followed the documentasion

Visualization API ‒ Qlik Sense

This is the code;

self = this;var config = {host: "xxxxx.xxxxx.se",

//prefix: "/",

prefix: "/tds/",

port: 443,

isSecure: true};

require.config({baseUrl: ( config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port: "") + config.prefix + "resources"});

require(["js/qlik"], function ( qlik ) {qlik.setOnError( function ( error ) {alert( error.message );});

var app = qlik.openApp('8d211ba9-1088-478d-a636-7b6b6cd770f6', config);

app.visualization.create('barchart',["Account ID","=Count([Account ID])"], //problem here

{title:"On the fly barchart"}

).then(function(vis){

vis.show("QV04");

});

});

}

})

1 Solution

Accepted Solutions
ErikWetterberg
Master
Master

Check that you are using the right version of Qlik Sense, you need 2.2 for the Visualization API.

Erik

View solution in original post

1 Reply
ErikWetterberg
Master
Master

Check that you are using the right version of Qlik Sense, you need 2.2 for the Visualization API.

Erik