2016-01-22 70 views
1

我开发了一个使用SAPUI5的应用程序。当从一个页面导航到另一个页面时,微调器必须出现。微调器在果冻豆android版上运行良好。但在更高版本上失败。谁能帮我这个?SAPUI5微调不能在更高版本的Android中工作

sap.ui.getCore().byId('loadingIndicator').setText("Loading..."); 
sap.ui.getCore().byId('loadingIndicator').open(); 
+1

如果您希望别人帮助您,您应该总是给[mcve] ... – jkalden

回答

0

使用sap.m.BusyDialog

var oBusyDialog = new sap.m.BusyDialog(); 
oBusyDialog.open();// will work when DOMis already there 
oBusyDialog.close();//else it throws error and page completely fails in IE. 

因此把它放在尝试捕捉

try{ 
oBusyDialog.open(); 
}catch(e){ 
//Error handler 
console.log("Busy dialog couldn't be loaded:"+e); 
} 

Check Preview here

注意:在页面刷新,DOM WIL在调用open()或close()方法之前,l没有加载,因此将它放在try catch中。