Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
tlamont
Partner - Contributor II
Partner - 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
Aiham_Azmeh
Employee
Employee

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.

View solution in original post

2 Replies
Aiham_Azmeh
Employee
Employee

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
Partner - Contributor II
Partner - Contributor II
Author

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