Hi,
i thought its straight forward but the below doesn't work - I want to run the below functions synchronously i.e. only after lvJOB1 part completes then run lvJOB2.
var lvJOB1 = function() {
apex.server.process('procTASK',
{},
{dataType: "text",
success: function(lvURL){
apex.navigation.redirect(lvURL);
}
});
};
var lvJOB2 = function() {
$('.refreshREG').trigger('apexrefresh');
document.getElementById("lineChart").scrollIntoView({behavior: 'smooth'}); } ;
...then executes as below
lvJOB1()
.then(function(data) {
return lvJOB2();
}, displayError) ;
but this downt work, what am i missing error?
thanks.