Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I want to create a Mashup Template and for this I need to have div-id & corresponding qlik-object id in a variable.
For Example :
Let say I have added a new Qlik-Object and as Dev-Hub automatically made changes in JS file and below line will be added:
app.getObject('QV01','zmrm');
So now I need these values in a variable as below:
var objects = {
'divid' : 'QV01',
'qlik-id' : 'zmrm'
}
Can anybody help me so that how this can be possible in a mashup templates, how this variable can be automatically be initialized be Dev-Hub while adding new qlik object.
Thanks.
Hi,
Not really possible wince the 'getObject' is pretty hard-coded and you would need to change the dev-hub source code for this.
Possibly you could patch the app object and add your own getObject method, something like this(not tested, so it's not likely to work without modifications):
app.getObject = function(divid,qlikid){
qlikobjects.push({divid:divid, qlikid:qlikid});
this.visualization.get(qlikid).then(function(vis){
vis.show(divid);
});
}
Very tricky but might work...
Erik Wetterberg