带有 displayDialog() 的 Outlook 加载项中的 uiless 操作
uiless action in Outlook add-in with displayDialog()
我们发现 Outlook 发生了变化,其中一项操作(“帮助”)仅在 Web 客户端上停止工作。
此操作只是调用一个在 displayDialog() 中打开网页的 js,但从没有窗格的意义上说它是无用的。
其他操作(“签名”)工作正常,但它会启动一个执行此操作的窗格。
它们都在富客户端上运行良好(至少是我使用的版本)。
我想知道最近要求或工作方式是否有变化?
我们没有看到任何错误消息,只是在提示说加载项正在执行某项操作后没有任何反应。
我们做了一些初步测试,发现在 chrome 中,对话框有时会短暂出现。您能否确认您正在 EventType.DialogEventReceived 的事件处理程序中调用 event.completed()? event.completed() 必须在 DialogEventReceived 处理程序中调用,否则对话框将过早关闭。
Office.context.ui.displayDialogAsync(url, dialogOptions, function(result) {
// In the callback, save the dialog object
dialog = result.value;
// Add an event handler for messages sent via messageParent
dialog.addEventHandler(Microsoft.Office.WebExtension.EventType.DialogMessageReceived, receiveMessage);
// Add an event handler for events from the platform (like closing the dialog, etc.)
dialog.addEventHandler(Microsoft.Office.WebExtension.EventType.DialogEventReceived, dialogClosed);
});
我们发现 Outlook 发生了变化,其中一项操作(“帮助”)仅在 Web 客户端上停止工作。
此操作只是调用一个在 displayDialog() 中打开网页的 js,但从没有窗格的意义上说它是无用的。
其他操作(“签名”)工作正常,但它会启动一个执行此操作的窗格。
它们都在富客户端上运行良好(至少是我使用的版本)。
我想知道最近要求或工作方式是否有变化?
我们没有看到任何错误消息,只是在提示说加载项正在执行某项操作后没有任何反应。
我们做了一些初步测试,发现在 chrome 中,对话框有时会短暂出现。您能否确认您正在 EventType.DialogEventReceived 的事件处理程序中调用 event.completed()? event.completed() 必须在 DialogEventReceived 处理程序中调用,否则对话框将过早关闭。
Office.context.ui.displayDialogAsync(url, dialogOptions, function(result) {
// In the callback, save the dialog object
dialog = result.value;
// Add an event handler for messages sent via messageParent
dialog.addEventHandler(Microsoft.Office.WebExtension.EventType.DialogMessageReceived, receiveMessage);
// Add an event handler for events from the platform (like closing the dialog, etc.)
dialog.addEventHandler(Microsoft.Office.WebExtension.EventType.DialogEventReceived, dialogClosed);
});