Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
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.
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.
That worked perfectly. Thank you very much for the assistance.