Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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,
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.
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,
Thanks both, didn't think to just try the extensionID 🙄
Many, many thanks for the quick response!
Dale