为什么从手机触发时我的触发状态是 "Paused"
why is my trigger status "Paused" when triggered from mobile
我使用 Google 表格中的数据验证实现了按钮点击变通功能,每当从移动设备执行触发器时,它都处于“暂停”状态。当这个触发器被执行时,我正在显示对话框,当从浏览器执行时,它工作得很好。
代码片段:
function onSheetEdit(e) {
...
var ui = SpreadsheetApp.getUi();
...
var result = ui.alert(
'Confirmation',
Text,
ui.ButtonSet.OK_CANCEL);
...
// Executed on OK
ui.showModelessDialog(
HtmlService.createHtmlOutput(html).setHeight(20),
'Redirecting'
);
}
UI dialog isn't shown using the mobile app, so the script just stays paused waiting for the dialog to be closed. A workaround would be to show the message as an image.
相关问题:
Google Sheets ui access on mobile?
我使用 Google 表格中的数据验证实现了按钮点击变通功能,每当从移动设备执行触发器时,它都处于“暂停”状态。当这个触发器被执行时,我正在显示对话框,当从浏览器执行时,它工作得很好。
代码片段:
function onSheetEdit(e) {
...
var ui = SpreadsheetApp.getUi();
...
var result = ui.alert(
'Confirmation',
Text,
ui.ButtonSet.OK_CANCEL);
...
// Executed on OK
ui.showModelessDialog(
HtmlService.createHtmlOutput(html).setHeight(20),
'Redirecting'
);
}
UI dialog isn't shown using the mobile app, so the script just stays paused waiting for the dialog to be closed. A workaround would be to show the message as an image.
相关问题:
Google Sheets ui access on mobile?