google-apps-script-web-application

Add content of showModalDialog() to the clipboard Google Script

霸气de小男生 提交于 2019-11-29 17:44:20
I have formatted data being added to a Modal Dialog when I click a button I want to the content of the showModalDialog() to be automatically added to the clipboard when I click the button as well The modal is being generated with the below code, and temp is the output I want added to the clipboard //Output to Html var htmlOutput = HtmlService .createHtmlOutput(temp) .setSandboxMode(HtmlService.SandboxMode.IFRAME) .setWidth(600) .setHeight(500); SpreadsheetApp.getUi().showModalDialog(htmlOutput, 'Filter OptionList Maker'); Edit; Ok, I guess maybe the Modal Dialog might be beside-the-point and

Stopping the error “Authorisation is required to perform that action” in Google Apps Script

﹥>﹥吖頭↗ 提交于 2019-11-29 02:54:19
I keep getting this error message when I try to view my deployed app. Authorisation is required to perform that action How do I get around the error? Services in use in the script: ScriptDB UiApp (I think that is all) I can't find the answer in the documentation, so I would be very grateful for some help. You need to go the script editor and attempt to run any function manually first. A first authorization popup is shown when you first deploy as web app, but if you go and change the code accessing new services you have to re-authorize it. 来源: https://stackoverflow.com/questions/11421055

Add content of showModalDialog() to the clipboard Google Script

馋奶兔 提交于 2019-11-28 12:37:26
问题 I have formatted data being added to a Modal Dialog when I click a button I want to the content of the showModalDialog() to be automatically added to the clipboard when I click the button as well The modal is being generated with the below code, and temp is the output I want added to the clipboard //Output to Html var htmlOutput = HtmlService .createHtmlOutput(temp) .setSandboxMode(HtmlService.SandboxMode.IFRAME) .setWidth(600) .setHeight(500); SpreadsheetApp.getUi().showModalDialog

Stopping the error “Authorisation is required to perform that action” in Google Apps Script

假如想象 提交于 2019-11-27 17:25:11
问题 I keep getting this error message when I try to view my deployed app. Authorisation is required to perform that action How do I get around the error? Services in use in the script: ScriptDB UiApp (I think that is all) I can't find the answer in the documentation, so I would be very grateful for some help. 回答1: You need to go the script editor and attempt to run any function manually first. A first authorization popup is shown when you first deploy as web app, but if you go and change the code

How to ask for user input in “on edit” installable trigger in Google Spreadsheet?

这一生的挚爱 提交于 2019-11-27 08:04:40
问题 When a user edits a cell in particular column to a particular value, messages are sent to a Telegram bot, depending on a new value. This is implemented by an "installable trigger" on edit event. It is installed by the document owner and always runs under that account. There are other users editing the doc and triggering the action. All works fine. Now for some action we need to request a few words from the user who made the edit. But since November 2017 (see issue 68846962) "for security

Is there any limit on number of concurrent hits on Google App Script Web App

只愿长相守 提交于 2019-11-27 02:27:32
问题 I am writing an Apps Script(to process emails, Tasks and Calendar events) and want to deploy it as a web App. The App will run in the context of the user who runs it. The App will be used by more than 10k+ users and probably even more. Before I distribute this to users I wanted to know if there is limit on number of concurrent hits a web App can have? Will the limit if users running the web app script would account in this case or my(script owner) limits would apply? Can I assume that it can

Google Script - Sidebar button keeps opening a new tab

余生长醉 提交于 2019-11-26 12:48:48
问题 I\'m creating an extremely basic script to assist me in one of my google spreadsheets. I\'ve successfully got a sidebar showing, with a few buttons (which function). However, whenever I click on one of those buttons, it also opens up a new tab, with a URL something like: \"https://n-lx3mdv5ls3mdgglsq226llilxd2m4owxy72y3fy-1lu-script.googleusercontent.com/userCodeAppPanel?\" Even if the button is left without any functionality, this still occurs. Here\'s an example of the html: <!DOCTYPE html>

Linking to another HTML page in Google Apps Script

99封情书 提交于 2019-11-26 05:48:45
问题 When linking from ScriptDbConsole.html to legend.html I get the following error message: Sorry, the file you have requested does not exist. Please check the address and try again. This would normally work in a normal environment, but not here I guess. It\'s in script.google.com. When creating a new .html file in script.google.com project, it creates it at the same location as it did for the others, so this code should actually work right? How can I open legend.html from ScriptDbConsole.html?