Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Needs to create Mashup Template and want to update variables on drag-n-drop new Objectt

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.


1 Reply
ErikWetterberg

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