Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

tlamont
New Contributor II

Qlik Sense Mashup Actions - Multiple

I'm trying to adjust the on-click action in the '$( "[data-qcmd]" ).on( 'click', function () {' section of my mashup by adding an additional application action.  I would like to set the value of a variable and then kick off a reload.  Each of the elements works fine separately, but they will not work when they are both included in the case statement.  Is there a way to allow both of the actions to run in order on the click event?

case 'ReloadTemp': 

   app.variable.setContent(vName,1);

   app.doReload();

break;

Any help would be greatly appreciated.  Thank you. 

1 Solution

Accepted Solutions
Employee
Employee

Re: Qlik Sense Mashup Actions - Multiple

Hi tlamont‌,

Those methods are asynchronous and return promises, you should try:

app.varable.seContent(vName, 1).then(function(){

     app.doReload();

});

I hope this helps.

2 Replies
Employee
Employee

Re: Qlik Sense Mashup Actions - Multiple

Hi tlamont‌,

Those methods are asynchronous and return promises, you should try:

app.varable.seContent(vName, 1).then(function(){

     app.doReload();

});

I hope this helps.

tlamont
New Contributor II

Re: Qlik Sense Mashup Actions - Multiple

That worked perfectly.  Thank you very much for the assistance. 

Community Browser