Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
tlamont
Partner Ambassador Affiliate
Partner Ambassador Affiliate

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 Ambassador Affiliate
Partner Ambassador Affiliate
Author

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