Will it be possible for the Worklight Adapter to be called synchronously?
This is the client code I am using:
function GetAccount(){
var acctresponse;
//Adapter call to get accounts from Server
//Registered Onsuccess and OnFailure
onSuccess: function(response){acctresponse=response},
onFailure: function(error){acctresponse=null;}
//UI Code dependent on above acctresponse.
}
Being Client adapter synchronous, the UI code is executed before the response arrives.
Can anyone suggest what is the best approach to handle a situation like this?