您无权调用showSidebar/showModalDialog [英] You do not have permission to call showSidebar / showModalDialog

查看:69
本文介绍了您无权调用showSidebar/showModalDialog的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几个月前,我在Google表格中创建了一个电子表格,并使用了Google Analytics(分析)插件.直到今天,它一直运行良好,现在,如果我尝试创建新报告,则会看到以下错误消息:

I created a spreadsheet in Google Sheets several months ago and use the Google Analytics add-on. It has always worked fine until today, now if I try to create a new report, I see this error message:

您无权调用showSidebar.

You do not have permission to call showSidebar.

运行报告显示:

您无权调用showModalDialog

You do not have permission to call showModalDialog

安排报告显示:

您无权调用showModalDialog

You do not have permission to call showModalDialog

我不过是一位谦虚的AdWords顾问,他只了解足以破坏事情的代码.但是,在这种情况下,我没有做任何更改.我所做的只是尝试运行报告.

I am but a humble AdWords consultant who knows just enough coding to break things. However, in this case, I haven't changed anything. All I did was try to run a report.

任何帮助将不胜感激.

推荐答案

看来这可能是原因:

为确保用户安全,已删除了无需显式用户操作即可显示对话框和侧边栏的功能.我们仍在评估将来是否可以再次支持这些用例.目前,我们建议显示对话框或边栏的脚本添加自定义菜单项(https://developers.google.com/apps-script/guides/menus ),用户可以选择打开对话框或边栏.

To ensure user safety, the ability to display dialogs and sidebars without explicit user action has been removed. We're still evaluating whether or not we can support these use cases again in the future. For the time being, we suggest that scripts that display dialogs or sidebars add a custom menu item (https://developers.google.com/apps-script/guides/menus) that users can select to open the dialog or sidebar.

因此您不再能够自动显示事物,而是需要用户实际提供输入.

So you can no longer show things automatically, but need a user to actually provide input.

这篇关于您无权调用showSidebar/showModalDialog的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆