SAPUI5 Spinner无法在更高版本的android中运行

时间:2016-01-22 09:26:30

标签: android sap sapui5

我使用SAPUI5开发了一个应用程序。在从一个页面导航到另一个页面时,必须显示微调器。微调器在果冻豆安卓版上运行良好。但是在更高版本上失败了。任何人都可以帮我这个吗?

function Invoke-Build {
    [CmdletBinding()]
    Param(
        [Parameter(Mandatory=$True,ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)]
        [string[]]$directories
    )
    Begin { Write-Output "Starting" }
    Process {
        Set-Location $_
        build
        Set-Location ..
    }
    End { Write-Output "Done" }

1 个答案:

答案 0 :(得分: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

  

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