Worklight Adapter を同期的に呼び出すことはできますか?
これは私が使用しているクライアントコードです:
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.
}
クライアント アダプタは同期であるため、応答が到着する前に UI コードが実行されます。
このような状況を処理するための最良のアプローチを提案できる人はいますか?