Qlik Community

Ask a Question

Integration, Extension & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Become an analytics expert with Qlik's new 15 week course: Applied Data Analytics using Qlik Sense. READ MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
dwqlik82
Contributor III
Contributor III

Visualisation API and Extensions

Hi,

 

Have been messing around with the visualisation API to dynamically build visualisations on the fly (simple gauges, charts etc), however would like to be able to use some in-house extensions (an xMR chart and custom KPI with popup) in the same way.

From what I've read I only seemed to find the registerExtension method which seems a bit ott as the extensions already exist on the server.

the qlik-visual component seemed to have a type of extension but there was no example documentation so was wondering if anyone else had done something similar or knew of any resources that referenced it.

 

Many Thanks

 

Dale

1 Solution

Accepted Solutions
aaz
Employee
Employee

Hi @dwqlik82 ,

If your visualization extension already exists in the server, you don't need to register it with `registerExtension`.

using visualization api you can :

app.visualization.create(
  'YOU_EXTENSION_ID',
  ["Case Owner Group","=Avg([Case Duration Time])"],
  {title:"My extension on the fly"}).then(vis => {
    vis.show("elementId");
});

qlik-visual web-component:

<qlik-visual appid="Helpdesk Management.qvf"
	type="MY_EXTENSION_ID"
	cols='["Case Owner Group","=Avg([Case Duration Time])"]'
	options='{"title" : "My extension on the fly"}' >
</qlik-visual>

 

I hope this helps,

View solution in original post

3 Replies
ErikWetterberg

Hi Dale,

Most extensions work very well with the visualization API. A problem might be that the property structure is not well documented, but if you can set up your objects the way you want with Qlik Sense, you can use the developer menu, or a separate tool like my Chrome extension Add Sense to grab the property structure.

The registerExtension API call is for another use case: when you want to use an extension in your mashup without having to install it on the server.

aaz
Employee
Employee

Hi @dwqlik82 ,

If your visualization extension already exists in the server, you don't need to register it with `registerExtension`.

using visualization api you can :

app.visualization.create(
  'YOU_EXTENSION_ID',
  ["Case Owner Group","=Avg([Case Duration Time])"],
  {title:"My extension on the fly"}).then(vis => {
    vis.show("elementId");
});

qlik-visual web-component:

<qlik-visual appid="Helpdesk Management.qvf"
	type="MY_EXTENSION_ID"
	cols='["Case Owner Group","=Avg([Case Duration Time])"]'
	options='{"title" : "My extension on the fly"}' >
</qlik-visual>

 

I hope this helps,

View solution in original post

dwqlik82
Contributor III
Contributor III
Author

Thanks both, didn't think to just try the extensionID 🙄

 

Many, many thanks for the quick response!

 

Dale