0
我正在開發一個Excel加載項,我使用dialogApi進行驗證。當我調用displayDialogAsync時,回調函數不會執行。dialogApi回調不在iPad中執行
Office.context.ui.displayDialogAsync(url, { height: _height, width: _width}, dialogCallback)
var dialogCallback = function(asyncResult) {
if (asyncResult.status == "failed") {
// In addition to general system errors, there are 3 specific errors for
// displayDialogAsync that you can handle individually.
switch (asyncResult.error.code) {
case 12004:
jQuery("body").append("Domain is not trusted");
break;
case 12005:
jQuery("body").append("HTTPS is required");
break;
case 12007:
jQuery("body").append("A dialog is already opened.");
break;
default:
jQuery("body").append(asyncResult.error.message);
break;
}
}else{
jQuery("body").append("Success");
dialog = asyncResult.value;
dialog.addEventHandler(Office.EventType.DialogMessageReceived, messageHandler);
}
}
上面的代碼在Windows和Mac OS中工作正常,但在iPad的情況下不執行回調。 我使用的Excel 1.25(160603)
-Thanks
我們現在正在檢查這個問題,並尋找提供修復,如果它碰巧是一個錯誤.. –
@SudhiRamamurthy謝謝:) –